Esempio n. 1
0
        public static Vob createVob(VobType vt)
        {
            Vob v = null;

            if (vt == VobType.Npc)
            {
                v = new NPC();
            }
            else if (vt == VobType.Player)
            {
                v = new Player();
            }
            else if (vt == VobType.Item)
            {
                v = new Item();
            }
            else if (vt == VobType.Vob)
            {
                v = new Vob();
            }
            else if (vt == VobType.MobInter)
            {
                v = new MobInter();
            }
            else if (vt == VobType.MobBed)
            {
                v = new MobBed();
            }
            else if (vt == VobType.MobContainer)
            {
                v = new MobContainer();
            }
            else if (vt == VobType.MobDoor)
            {
                v = new MobDoor();
            }
            else if (vt == VobType.MobSwitch)
            {
                v = new MobSwitch();
            }


            if (v != null)
            {
                v.VobType = vt;
            }

            return(v);
        }
Esempio n. 2
0
 public void UseMob(MobInter mob)
 {
 }