00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019 #ifndef __TFLEETACTION_INCLUDED
00020 #define __TFLEETACTION_INCLUDED
00021
00022 #include "gamelogic/action.h"
00023 #include "gamelogic/waypoint.h"
00024
00025
00026
00027
00028
00029
00030
00041 DeclareNewAction(ADD_WAYPOINT)
00042 public:
00043 void setWaypoint( const TWaypoint& wp );
00044
00045 private:
00046 TWaypoint fWaypoint;
00047 EndDeclareAction;
00048
00049
00050
00051
00060 DeclareNewAction(INSERT_WAYPOINT)
00061 public:
00062 void setWaypoint( const TWaypoint& wp );
00063 void setInsertPosition( int2 InsertPosition );
00064
00065 private:
00066 TWaypoint fWaypoint;
00067
00068 int2 fInsertPosition;
00069 EndDeclareAction;
00070
00071
00072
00073
00074
00083 DeclareNewAction(REMOVE_WAYPOINT)
00084 public:
00085 void setWaypointNumber( int2 waypointNumber );
00086
00087 private:
00088
00089 int2 fWaypointNumber;
00090 EndDeclareAction;
00091
00092
00093
00094
00095
00104 DeclareNewAction(REPLACE_WAYPOINT)
00105 public:
00106 void setWaypoint( const TWaypoint& wp );
00107 void setWaypointNumber( int2 waypointNumber );
00108
00109 private:
00110 TWaypoint fWaypoint;
00111
00112 int2 fWaypointNumber;
00113 EndDeclareAction;
00114
00115
00116
00117
00118
00127 DeclareNewAction(FleetMovement)
00128 virtual bool checkActionConflicts();
00129 virtual bool resolveActionConflicts();
00130
00131 private:
00132 EndDeclareAction;
00133
00134 #endif