示例#1
0
        public CreatureContext(BattleContext battle, TrainerContext trainer, Creature creature) : base(creature)
        {
            Trainer = trainer;

            foreach (var move in creature.Moves)
            {
                Moves.Add(battle.CreateMove(this, move));
            }
        }
示例#2
0
 public virtual CreatureContext CreateCreature(TrainerContext trainer, Creature creature)
 {
     return(new CreatureContext(this, trainer, creature));
 }