Ejemplo n.º 1
0
 public Battle(List <Hero> heroes, List <Enemy> enemies)
 {
     Heroes             = heroes;
     Enemies            = enemies;
     TurnSystem         = new DefaultTurnSystem();
     this.HealthCounter = new MarioHealthCounter(heroes);
     ActionMenu         = new DefaultActionMenu(TurnSystem);
     TargetSystem       = new DefaultTargetSystem(Enemies);
     TurnSystem.Load(heroes, enemies);
 }
Ejemplo n.º 2
0
 public Battle(List <Hero> heroes, List <Enemy> enemies, ITextBubbleSystem bubbleSystem)
 {
     Heroes             = heroes;
     Enemies            = enemies;
     TurnSystem         = new DefaultTurnSystem();
     enemyAISysytem     = new DefaultEnemyAiSystem(this, TurnSystem);
     this.HealthCounter = new MarioHealthCounter(heroes);
     ActionMenu         = new DefaultActionMenu(TurnSystem);
     TargetSystem       = new DefaultTargetSystem(Enemies);
     TextBubbleSystem   = bubbleSystem;
     TurnSystem.Load(heroes, enemies);
 }
Ejemplo n.º 3
0
        private void CheckLoaded()
        {
            if (this.HealthCounter == null)
            {
                this.HealthCounter = new MarioHealthCounter(Heroes);
            }

            if (TargetSystem == null)
            {
                TargetSystem = new DefaultTargetSystem(Enemies);
            }
            TurnSystem.Load(Heroes, Enemies);
        }