Ejemplo n.º 1
0
 public PlayerPreviewView(GameScreen screen, Player player)
     : base(screen)
 {
     this.player = player;
     Position = new Vector2(140, 10);
     LoadContent();
 }
Ejemplo n.º 2
0
 public JobPreviewView(GameScreen screen, Player player)
     : base(screen)
 {
     this.player = player;
     this.job = player.Job;
     Position = new Vector2(15, 57);
     LoadContent();
 }
Ejemplo n.º 3
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);
        }
Ejemplo n.º 4
0
        public PlayerView(Player player, GameScreen screen, Vector2 position)
            : base(player, position, screen)
        {
            fieldView = new FieldPlayerView(player, screen, position);
            battleView = new BattlePlayerView(player, screen, position);

            fieldView.TransformEnd += onTransformEnd;

            CurrentView = fieldView;

            player.Died += onDied;
        }
Ejemplo n.º 5
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;
        }
Ejemplo n.º 6
0
 public FieldPlayerView(Player player, GameScreen screen, Vector2 position)
     : base(player, position, screen)
 {
     LoadContent();
 }
Ejemplo n.º 7
0
 public BattlePlayerView(Player player, GameScreen screen, Vector2 position)
     : base(player, screen, position, true)
 {
     player.JobMaster += onJobMaster;
 }