Ejemplo n.º 1
0
 public Command CreateEnemyCommand(Enemy enemy)
 {
     Command command = (Command)enemy.Job.Command.Clone();
     command.Performer = enemy;
     Player target = null;
     do
     {
         target = players[new Random().Next(players.Count)];
     } while (!target.Alive);
     command.Target = target;
     return command;
 }
Ejemplo n.º 2
0
 public EnemyView(Enemy enemy, GameScreen screen, Vector2 position)
     : base(enemy, screen, position, false)
 {
 }
 public EnemyCommandPerformController(ControllerManager controllerManager, Enemy enemy)
     : base(controllerManager)
 {
     this.enemy = enemy;
     AddViews(ViewManager.Characters);
 }