Started modelling object interaction.

This commit is contained in:
2014-06-11 15:21:59 -04:30
parent 3f522da485
commit 95bb97536c
2 changed files with 20 additions and 2 deletions

View File

@@ -193,7 +193,7 @@ public class InGameState extends BaseState{
gameWorld.setSystem(new GeometrySystem()); gameWorld.setSystem(new GeometrySystem());
gameWorld.setSystem(new AnimationSystem()); gameWorld.setSystem(new AnimationSystem());
gameWorld.setSystem(new CollisionDetectionSystem()); gameWorld.setSystem(new CollisionDetectionSystem());
//gameWorld.setSystem(GameSettings.getGameLogicSystem()); gameWorld.setSystem(GameSettings.getGameLogicSystem());
gameWorld.setSystem(markerRenderingSystem, true); gameWorld.setSystem(markerRenderingSystem, true);
gameWorld.setSystem(objectRenderingSystem, true); gameWorld.setSystem(objectRenderingSystem, true);

View File

@@ -49,10 +49,28 @@ public class BombGameLogicSystem extends GameLogicSystemBase {
typeComponent = typeMapper.get(e); typeComponent = typeMapper.get(e);
switch(typeComponent.type){ switch(typeComponent.type){
case BombGameObjectTypeComponent.BOMB_WIRE_1:
break;
case BombGameObjectTypeComponent.BOMB_WIRE_2:
break;
case BombGameObjectTypeComponent.BOMB_WIRE_3:
break;
case BombGameObjectTypeComponent.BIG_BUTTON:
break;
case BombGameObjectTypeComponent.COM_BUTTON_1:
break;
case BombGameObjectTypeComponent.COM_BUTTON_2:
break;
case BombGameObjectTypeComponent.COM_BUTTON_3:
break;
case BombGameObjectTypeComponent.COM_BUTTON_4:
break;
case BombGameObjectTypeComponent.DOOR: case BombGameObjectTypeComponent.DOOR:
processDoor(e); processDoor(e);
break; break;
default: break; default:
Gdx.app.debug(TAG, CLASS_NAME + ".process(): Unrecognized object type.");
break;
} }
} }