示例#1
0
        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);
        }
示例#2
0
        public static WalkerEnemyController CreateWalkerController(WalkerEnemy enemy)
        {
            WalkerEnemyController enemyController = new WalkerEnemyController(enemy);

            return(enemyController);
        }