public Actor NewActor(ActorType typeMonster, Mage owner)
        {
            switch (typeMonster)
            {

                case ActorFactory.ActorType.FireElemental:
                    return new FireElemental();
                case ActorFactory.ActorType.Goblin:
                    return new Goblin(this.getUniqueGoblinName(), owner);
                case ActorFactory.ActorType.IceElemental:
                    return new NoOne();
                case ActorFactory.ActorType.Ogre:
                    return new NoOne();
                case ActorFactory.ActorType.Troll:
                    return new NoOne();
                case ActorFactory.ActorType.Giant:
                    return new NoOne();
                case ActorFactory.ActorType.Mage:
                    return new NoOne();
                default:
                    return new NoOne();

            }
        }
示例#2
0
 public Arm(Mage aOwner)
 {
     this.Owner = aOwner;
     this.gestures = new List<Mage.handGesture>();
 }
示例#3
0
 public bool proposeHandGesture(Mage.handGesture aGesture)
 {
     gestures.Add(aGesture);
     return true;
 }
示例#4
0
 public Goblin(string aName, Mage anOwner)
     : base(aName, ActorFactory.MaxHPts.Goblin, anOwner)
 {
     this.brain = new HeadBrain();
 }