Ejemplo n.º 1
0
 /// <summary>
 /// </summary>
 /// <param name="vector3">
 /// </param>
 public Coordinate(SmokeLounge.AOtomation.Messaging.GameData.Vector3 vector3)
 {
     this.coordinate = new Vector3(0, 0, 0);
     this.Update(vector3.X, vector3.Y, vector3.Z);
 }
Ejemplo n.º 2
0
 /// <summary>
 /// </summary>
 /// <param name="vector3">
 /// </param>
 public AOCoord(SmokeLounge.AOtomation.Messaging.GameData.Vector3 vector3)
 {
     this.coordinate.x = vector3.X;
     this.coordinate.y = vector3.Y;
     this.coordinate.z = vector3.Z;
 }
Ejemplo n.º 3
0
 public bool Move(
     int moveType,
     Coordinate newCoordinates,
     SmokeLounge.AOtomation.Messaging.GameData.Quaternion heading)
 {
     return false;
 }
Ejemplo n.º 4
0
        public void MoveTo(SmokeLounge.AOtomation.Messaging.GameData.Vector3 destination)
        {
            FollowTargetMessageHandler.Default.Send(this.Character, this.Character.RawCoordinates, destination);
            Vector3 dest = destination;
            Vector3 start = this.Character.RawCoordinates;
            dest = start - dest;
            dest = dest.Normalize();
            this.Character.Heading = (Quaternion)Quaternion.GenerateRotationFromDirectionVector(dest);
            this.Run();

            Coordinate c = new Coordinate(destination);
            this.followCoordinates = c.coordinate;
            /*bool arrived = false;
            double lastDistance = double.MaxValue;
            while (!arrived)
            {
                Coordinate temp = this.Character.Coordinates;
                double distance = this.Character.Coordinates.Distance2D(c);
                arrived = (distance < 0.2f) || (lastDistance < distance);
                lastDistance = distance;
                // LogUtil.Debug(DebugInfoDetail.Movement,"Moving...");
                Thread.Sleep(100);
            }
            LogUtil.Debug(DebugInfoDetail.Movement, "Arrived at "+this.Character.Coordinates.ToString());
            this.StopMovement();*/
        }
Ejemplo n.º 5
0
 public override void Coordinates(SmokeLounge.AOtomation.Messaging.GameData.Vector3 position)
 {
     this.RawCoordinates = position;
     LogUtil.Debug(DebugInfoDetail.Movement, "Coord Set at: " + position.ToString());
     this.PredictionTime = DateTime.UtcNow;
 }