Exemplo n.º 1
0
 public CommandSerifView(GameScreen screen, Command command, CharacterView characterView)
     : base(screen)
 {
     this.command = command;
     this.characterView = characterView;
     LoadContent();
 }
        public override void Begin()
        {
            base.Begin();

            this.command = ModelManager.CreateEnemyCommand(enemy);
            Scheduler.Add(say, 0.2f);
            Scheduler.Add(delegate() { ControllerManager.PerformCommand(command); }, 0.6f);
        }
Exemplo n.º 3
0
 public Job(string name, Command command, int maxHp, int maxMp, int exp, bool hasSexTexture)
 {
     this.name = name;
     this.command = command;
     this.maxHp = maxHp;
     this.maxMp = maxMp;
     this.exp = exp;
     this.hasSexTexture = hasSexTexture;
 }
Exemplo n.º 4
0
        public CommandEffectView(GameScreen screen, Command command, CharacterView characterView)
            : base(screen)
        {
            this.command = command;
            this.characterView = characterView;

            int diff = (command.Target is Player) ? 10 : -10;
            characterView.CharacterPosition = new Vector2(diff, 0);
            elapsed = 0;
            active = true;
        }
        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.º 6
0
 public void PerformCommand(Command command)
 {
     command.Perform();
     if (IsBattleEnd())
         FinalizeBattle();
 }
Exemplo n.º 7
0
 public void PerformCommand(Command command)
 {
     CommandEffectView effect = new CommandEffectView(Screen, command, ViewManager.ViewForCharacter(command.Target));
     effect.EffectEnd += effectEnd;
     controller.Views.Add(effect);
 }
Exemplo n.º 8
0
 private string CommandLabel(Command command)
 {
     return Message("Command", command.Name, "Name");
 }
Exemplo n.º 9
0
 public CommandPerformController(ControllerManager controllerManager, Command command)
     : base(controllerManager)
 {
     this.command = command;
     AddViews(ViewManager.Characters);
 }