Пример #1
0
        public CommandSelectController(ControllerManager controllerManager, Player performer)
            : base(controllerManager)
        {
            AddViews(ViewManager.Characters);

            this.performer = performer;
            selectView = new CommandSelectView(Screen, (PlayerView)ViewManager.ViewForCharacter(performer));
            Views.Add(selectView);
        }
Пример #2
0
 public override void LoadContent()
 {
     JobManager.Instance.LoadContent(ScreenManager.Game.Content);
     modelManager = ModelManager.Instance;
     viewManager = new ViewManager(this);
     viewManager.LoadContent();
     controllerManager = new ControllerManager(this);
     controllerManager.Controller = new StandController(controllerManager);
 }
Пример #3
0
        public StandController(ControllerManager controllerManager)
            : base(controllerManager, CharacterSelectType.OnePlayer)
        {
            AddViews(ViewManager.Players);
            Views.Add(new ForwardArrowView(Screen));
            Selected += showJobMenu;

            ModelManager.ResetPlayerStatus();
            SelectCharacter(ModelManager.Players[0]);
        }
        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]);
        }
Пример #5
0
 public CommandController(ControllerManager controllerManager)
     : base(controllerManager)
 {
     Views = new List<View>();
     foreach (View player in ViewManager.Players)
     {
         Views.Add(player);
     }
     foreach (View enemy in ViewManager.Enemies)
     {
         Views.Add(enemy);
     }
 }
Пример #6
0
        public JobMenuController(ControllerManager controllerManager, Player targetPlayer, Controller parentController)
            : base(controllerManager)
        {
            this.targetPlayer = targetPlayer;
            this.parentController = parentController;

            Views.Add(new PlayerPreviewView(Screen, targetPlayer));
            previewView = new JobPreviewView(Screen, targetPlayer);
            Views.Add(previewView);
            treeView = new JobTreeView(Screen, JobManager.Instance.Jobs);
            Views.Add(treeView);
            selectView = new JobSelectView(Screen);
            Views.Add(selectView);

            JobTreeItemView item = treeView.ItemView(targetPlayer.Job);
            Select(item);
            item.Active = true;
        }
Пример #7
0
 public EndBattleController(ControllerManager controllerManager)
     : base(controllerManager)
 {
     AddViews(ViewManager.Characters);
 }
Пример #8
0
 public CoroutineController(ControllerManager controllerManager)
     : base(controllerManager)
 {
 }
Пример #9
0
 public LeaveController(ControllerManager controllerManager)
     : base(controllerManager)
 {
     AddViews(ViewManager.Characters);
 }
Пример #10
0
 public EmptyController(ControllerManager manager)
     : base(manager)
 {
 }
Пример #11
0
 public EncounterController(ControllerManager controllerManager)
     : base(controllerManager)
 {
     AddViews(ViewManager.Players);
 }
 public EnemyCommandPerformController(ControllerManager controllerManager, Enemy enemy)
     : base(controllerManager)
 {
     this.enemy = enemy;
     AddViews(ViewManager.Characters);
 }
Пример #13
0
 public GameOverController(ControllerManager controllerManager)
     : base(controllerManager)
 {
     AddViews(ViewManager.Characters);
 }
Пример #14
0
 public CommandPerformController(ControllerManager controllerManager, Command command)
     : base(controllerManager)
 {
     this.command = command;
     AddViews(ViewManager.Characters);
 }