Exemplo n.º 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);
        }
Exemplo n.º 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);
 }
Exemplo n.º 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]);
        }
Exemplo n.º 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);
     }
 }
Exemplo n.º 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;
        }
Exemplo n.º 7
0
 public EndBattleController(ControllerManager controllerManager)
     : base(controllerManager)
 {
     AddViews(ViewManager.Characters);
 }
Exemplo n.º 8
0
 public CoroutineController(ControllerManager controllerManager)
     : base(controllerManager)
 {
 }
Exemplo n.º 9
0
 public LeaveController(ControllerManager controllerManager)
     : base(controllerManager)
 {
     AddViews(ViewManager.Characters);
 }
Exemplo n.º 10
0
 public EmptyController(ControllerManager manager)
     : base(manager)
 {
 }
Exemplo n.º 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);
 }
Exemplo n.º 13
0
 public GameOverController(ControllerManager controllerManager)
     : base(controllerManager)
 {
     AddViews(ViewManager.Characters);
 }
Exemplo n.º 14
0
 public CommandPerformController(ControllerManager controllerManager, Command command)
     : base(controllerManager)
 {
     this.command = command;
     AddViews(ViewManager.Characters);
 }