Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members  

fleetaction.h

00001 // $Id: fleetaction_8h-source.html,v 1.2 2002/06/20 17:09:51 mkrohn5 Exp $
00002 
00003 // Fleet Action Header File
00004 // Written by: Alberto Barsella,
00005 //             Marco Krohn, <marco.krohn@gmx.de>
00006 
00007 // Copyright (C) 1999 - 2002, Alberto Barsella, <Alberto.Barsella@univ-lille1.fr>
00008 //
00009 // This program is free software; you can redistribute it and/or modify
00010 // it under the terms of the GNU General Public License as published by
00011 // the Free Software Foundation; either version 1, or (at your option)
00012 // any later version.
00013 //
00014 // This program is distributed in the hope that it will be useful,
00015 // but WITHOUT ANY WARRANTY; without even the implied warranty of
00016 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00017 // GNU General Public License for more details.
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 //----------------------------------------  class TAction_ADD_WAYPOINT  ----------------------------------------
00030 
00041 DeclareNewAction(ADD_WAYPOINT)
00042   public:
00043     void setWaypoint( const TWaypoint& wp );
00044 
00045   private:
00046     TWaypoint fWaypoint;
00047 EndDeclareAction;
00048 
00049 
00050 //---------------------------------------  class TAction_INSERT_WAYPOINT  --------------------------------------
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      /* new waypoint is inserted before the waypoint with this number */
00068     int2 fInsertPosition;
00069 EndDeclareAction;
00070 
00071 
00072 
00073 //---------------------------------------  class TAction_REMOVE_WAYPOINT  --------------------------------------
00074 
00083 DeclareNewAction(REMOVE_WAYPOINT)
00084   public:
00085     void setWaypointNumber( int2 waypointNumber );
00086 
00087   private:
00088     /* number of the waypoint to be removed */ 
00089     int2 fWaypointNumber;
00090 EndDeclareAction;
00091 
00092 
00093 
00094 //---------------------------------------  class TAction_REPLACE_WAYPOINT  -------------------------------------
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     /* number of the waypoint to be replaced */ 
00112     int2 fWaypointNumber;
00113 EndDeclareAction;
00114 
00115 
00116 
00117 //------------------------------------------  class TActionFleetMovement  -----------------------------------------
00118 
00127 DeclareNewAction(FleetMovement)
00128     virtual bool checkActionConflicts();
00129     virtual bool resolveActionConflicts();
00130 
00131   private:
00132 EndDeclareAction;
00133 
00134 #endif

Generated on Thu Jun 20 18:13:15 2002 for Stellar Legacy by doxygen1.2.13.1 written by Dimitri van Heesch, © 1997-2001