Beispiel #1
0
        private void ContentAddEnemy()
        {
            switch (RandomGenerator.Return(0, 1))
            {
            case 0:
                this.GameObj = Playground.RandomCharacter(Playground.Fighters);      // Set random Fighter
                break;

            case 1:
                if (addedTrainers++ < maxTrainers)
                {
                    this.GameObj = Playground.RandomCharacter(Playground.Trainers);     // Set random Trainer and then remove it
                    break;
                }
                this.GameObj = Playground.RandomCharacter(Playground.Fighters);
                break;
            }
        }
Beispiel #2
0
 private void ContentAddFriend()
 {
     this.GameObj = Playground.RandomCharacter(Playground.Friends); // set random Friend
 }