Beispiel #1
0
 protected Actor(String name, String color, 
     MoveDirection initialDirection, Home homeActor)
 {
     this.Name = name;
     this.color = color;
     this.PosX = homeActor.PosX;
     this.PosY = homeActor.PosY;
     this.Direction = initialDirection;
     this.home = homeActor;
 }
 public TimeManagementObjectModelInteractionListener(XrtiExecutiveAmbassador aRti, 
     ILogicalTimeFactory aTimeFactory, Home home, ILogicalTimeInterval moveActorInterval,
     TimeManagementForm form, TimeManagementSimulation simulation)
 {
     this.rti = aRti;
     this.timeFactory = aTimeFactory;
     this.home = home;
     this.moveActorInterval = moveActorInterval;
     this.form = form;
     this.simulation = simulation;
 }
Beispiel #3
0
        public void SetTarget(Home target)
        {
            lock (this)
            {
                this.target = target;

                item1 = new Item(ItemType.Goal, target.PosX, target.PosY);
                DrawChanges(Actor.MoveDirection.Up); // TODO: chapuza
            }
        }
Beispiel #4
0
 public static Actor NewActor(String name, String color,
     MoveDirection initialDirection, Home homeActor)
 {
     return (Actor)NewInstance(myCallType, name, color, initialDirection, homeActor);
 }
 public TimeManagementObjectModelInteractionListener(XrtiExecutiveAmbassador aRti,
                                                     ILogicalTimeFactory aTimeFactory, Home home, ILogicalTimeInterval moveActorInterval,
                                                     TimeManagementForm form, TimeManagementSimulation simulation)
 {
     this.rti               = aRti;
     this.timeFactory       = aTimeFactory;
     this.home              = home;
     this.moveActorInterval = moveActorInterval;
     this.form              = form;
     this.simulation        = simulation;
 }