示例#1
0
 public Waypoint(int x, int y, int speed, WaypointTask task) : base()
 {
     this.x     = x;
     this.y     = y;
     this.speed = speed;
     this.task  = task;
 }
示例#2
0
    /**
     * Add a waypoint to this fleet
     */
    public Waypoint addWaypoint(int x, int y, int speed, WaypointTask task, MapObject target)
    {
        Waypoint wp = new Waypoint(x, y, speed, task, target);

        waypoints.Add(wp);
        return(wp);
    }
示例#3
0
    /**
     * Add a waypoint to this fleet
     */
    public Waypoint addWaypoint(int x, int y, int speed, WaypointTask task)
    {
        Waypoint wp = new Waypoint(x, y, speed, task);

        waypoints.Add(wp);
        return(wp);
    }
示例#4
0
 public Waypoint(int x, int y, int speed, WaypointTask task, MapObject target) : base()
 {
     this.x      = x;
     this.y      = y;
     this.speed  = speed;
     this.task   = task;
     this.target = target;
 }
示例#5
0
 public void setWaypointTask(int i)
 {
     task = (WaypointTask)i;
 }
示例#6
0
 public void setTask(WaypointTask task)
 {
     this.task = task;
 }