public CommandTargetSelectController(ControllerManager controllerManager, Command command, CommandSelectController commandSelectController)
            : base(controllerManager, CharacterSelectType.One)
        {
            this.command = command;
            this.commandSelectController = commandSelectController;

            AddViews(ViewManager.Characters);

            Selected += performCommand;
            Cancelled += commandReselect;

            SelectCharacter(ModelManager.Enemies[0]);
        }
Beispiel #2
0
 public void PerformNext()
 {
     Character nextPerformer = ModelManager.NextPerformer();
     if (nextPerformer is Player)
     {
         Controller = new CommandSelectController(this, (Player)nextPerformer);
     }
     else
     {
         Controller = new EnemyCommandPerformController(this, (Enemy)nextPerformer);
     }
 }