Esempio n. 1
0
        protected Enemy(String id, EnemyMetadata metadata, EnemyAi ai, EnemyStats stats, EnemyBattleLogic battleLogic)
            : base(id, stats, battleLogic)
        {
            Metadata = metadata;
            Ai = ai;

            //we should set their current health and energy to the max
            CurrentHealth = Stats.MaxHealth;
            CurrentEnergy = Stats.MaxEnergy;
        }
Esempio n. 2
0
 public static Enemy New(String id, EnemyMetadata metadata, EnemyAi ai, EnemyStats stats, EnemyBattleLogic battleLogic)
 {
     return new Enemy(id, metadata, ai, stats, battleLogic);
 }