private void spawnWalkerEnemyAt(int x, int y) { EnemyEvent enemyEvent = new EnemyEvent(); Vector2 tilePosition = calculateTilePosition(x, y); WalkerEnemy enemy = EnemyFactory.CreateWalkerEntity(world, enemyEvent, tilePosition); WalkerEnemyRepresentation enemyRepresentation = EnemyFactory.CreateWalkerRepresentation(enemy, enemyEvent, representationManager.Content); WalkerEnemyController enemyController = EnemyFactory.CreateWalkerController(enemy); spawnEnemy(enemy, enemyRepresentation, enemyController); }
public static WalkerEnemyController CreateWalkerController(WalkerEnemy enemy) { WalkerEnemyController enemyController = new WalkerEnemyController(enemy); return(enemyController); }