Exemplo n.º 1
0
 public void StopCreatureCheck()
 {
     AttackCheck = null;
     FollowCheck = null;
     TalkCheck   = null;
     SpellCheck  = null;
 }
Exemplo n.º 2
0
        public void InitCreatureCheck(GameWorld world)
        {
            AttackCheck = new AttackCheck();
            AttackCheck.CurrentCreature = this;
            AttackCheck.TimeInCS        = 200; //2 seconds
            AttackCheck.World           = world;
            world.AddEventInCS(AttackCheck.TimeInCS, AttackCheck.PerformCheck);

            FollowCheck = new FollowCheck();
            FollowCheck.CurrentCreature = this;
            FollowCheck.TimeInCS        = 30; //Change based on certain things
            FollowCheck.World           = world;
            world.AddEventInCS(FollowCheck.TimeInCS, FollowCheck.PerformCheck);

            TalkCheck = new TalkCheck();
            TalkCheck.CurrentCreature = this;
            TalkCheck.TimeInCS        = 49; //50
            TalkCheck.World           = world;
            world.AddEventInCS(TalkCheck.TimeInCS, TalkCheck.PerformCheck);

            SpellCheck = new SpellCheck();
            SpellCheck.CurrentCreature = this;
            SpellCheck.TimeInCS        = 51; //50
            SpellCheck.World           = world;
            world.AddEventInCS(SpellCheck.TimeInCS, SpellCheck.PerformCheck);
        }