mirror of
				https://athene2.informatik.unibw-muenchen.de/progproj/gruppen-ht24/Gruppe-02.git
				synced 2025-11-04 00:35:52 +01:00 
			
		
		
		
	improve position calc
This commit is contained in:
		@@ -133,7 +133,7 @@ public class TestWorld implements GameEventListener{
 | 
			
		||||
    @Override
 | 
			
		||||
    public void receivedEvent(PopUpEvent event) {
 | 
			
		||||
        if(event.msg().equals("Buy")) {
 | 
			
		||||
            int field = app.getGameLogic().getPlayerHandler().getPlayers().get(0).getFieldID();
 | 
			
		||||
            int field = app.getGameLogic().getPlayerHandler().getPlayerById(app.getId()).getFieldID();
 | 
			
		||||
            Object fieldObject = app.getGameLogic().getBoardManager().getFieldAtIndex(field);
 | 
			
		||||
            
 | 
			
		||||
            if (fieldObject instanceof BuildingProperty) {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user