public EnemyLogicComponent(IGameObjectLocator gameObjectLocator, IGameCommand fireCommand, IGeometryMathService geometryMathService, EnemyData enemyData) { _enemyState = new EnemyLogicNormalState(gameObjectLocator, fireCommand, geometryMathService, enemyData); _gameObjectLocator = gameObjectLocator; _fireCommand = fireCommand; _geometryMathService = geometryMathService; _enemyData = enemyData; }
public void Update(IGameObject gameObject, IGameWorld gameWorld) { _enemyState = _enemyState.Update(gameObject, gameWorld); }
public void HandleEvent(IGameObject gameObject, IGameWorld gameWorld, object gameEvent) { _enemyState = _enemyState.HandleEvent(gameObject, gameWorld, gameEvent); }