public CitizenSensoryPerception(Map AreaMap, Actor Parent)
     : base(Parent)
 {
     VisionRefreshRate = 500;
     Area = AreaMap;
     ActorsInSight = new List<Actor>();
 }
示例#2
0
 private void Const(Actor Sender, Actor Receiver, int Msg, float Delay, object Data)
 {
     this.Sender = Sender;
     this.Receiver = Receiver;
     this.MessageType = Msg;
     this.Data = Data;
     this.DispatchTime = Globals.CurrentTime + Delay;
 }
示例#3
0
 public Msg(Actor Sender, Actor Receiver, int Msg, float Delay, object Data)
 {
     Const(Sender, Receiver, Msg, Delay, Data);
 }
示例#4
0
 public Msg(Actor Sender, Actor Receiver, int Msg, float Delay)
 {
     Const(Sender, Receiver, Msg, Delay, null);
 }
示例#5
0
 public Msg(Actor Sender, Actor Receiver, int Msg)
 {
     Const(Sender, Receiver, Msg, 0, null);
 }
示例#6
0
 public ActorIntention(Actor Parent)
 {
     this.Parent = Parent;
 }
示例#7
0
 public void Remove(Actor actor)
 {
     Remove(actor.ID);
 }
示例#8
0
 public void Add(Actor actor)
 {
     if (!ActorList.ContainsKey(actor.ID)) ActorList.Add(actor.ID, actor);
 }
示例#9
0
 public ActorLocomotion(Actor Parent)
 {
     this.ParentActor = Parent;
 }
示例#10
0
 public ActorBody(Actor Parent, IBodyProxy Proxy)
 {
     this.BodyProxy = Proxy;
     this.ParentActor = Parent;
 }
 public ActorSensoryPerception(Actor ParentActor)
 {
     this.ParentActor = ParentActor;
     //this.SensoryPerceptionProxy = Proxy;
 }
示例#12
0
 public CitizenLocomotion(Actor Parent, Map map)
     : base(Parent)
 {
     Area = map;
 }