예제 #1
0
파일: Actor.cs 프로젝트: superliujian/Sxta
 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;
 }
예제 #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
            }
        }
예제 #4
0
파일: Actor.cs 프로젝트: superliujian/Sxta
 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;
 }