예제 #1
0
 public WoWPlayer(WoWObject wo, Vector3 pos, float rot, WoWClass uClass, byte moveflag) : base(wo) {
     this.Position = pos;
     this.Rotation = rot;
     this.unitClass = uClass;
     this.MovingInfo = new MovementFlags(moveflag);
     this.RPlayer = new RadarPlayer(new Vector2(
         -RadarObject.RadarZoom * (pos.Y - Game1.mainPlayer.Position.Y),
         -RadarObject.RadarZoom * (pos.X - Game1.mainPlayer.Position.X)), -(rot + (float)Math.PI / 2), ColorHelper.GetColorFromWoWClass(uClass));
 }
예제 #2
0
 public void SetPositions(WoWPlayer other) {
     this.position = other.position;
     this.rotation = other.rotation;
     this.rPlayer.RelativeRadarPosToPlayer = new Vector2(
         -RadarObject.RadarZoom * (other.position.Y - Game1.mainPlayer.Position.Y),
         -RadarObject.RadarZoom * (other.position.X - Game1.mainPlayer.Position.X));
     this.rPlayer.RadarRot = -(other.rotation + (float)Math.PI / 2);
     this.MovingInfo = other.MovingInfo;
 }