00001 /*************************************************************************** 00002 unitcommandcenter.h - description 00003 ------------------- 00004 begin : Sun Aug 26 2001 00005 copyright : (C) 2001 by T Kontkanen 00006 email : tkontkanen@mail.com 00007 ***************************************************************************/ 00008 00009 /*************************************************************************** 00010 * * 00011 * This program is free software; you can redistribute it and/or modify * 00012 * it under the terms of the GNU General Public License as published by * 00013 * the Free Software Foundation; either version 2 of the License, or * 00014 * (at your option) any later version. * 00015 * * 00016 ***************************************************************************/ 00017 00018 #ifndef UNITCOMMANDCENTER_H 00019 #define UNITCOMMANDCENTER_H 00020 00025 #include "renderer.h" 00026 #include "player.h" 00027 #include "ground.h" 00028 #include "allincludes.h" 00029 #include "gamedefs.h" 00030 #include "vector.h" 00031 #include "dummymovement.h" 00032 #include "unit.h" 00033 #include "unitmarine.h" 00034 00039 class Player; 00040 class Unit; 00041 00042 using namespace TGL; 00043 00044 class Game; 00045 00046 class UnitCommandCenter : public Unit, DummyMovement { 00047 public: 00048 UnitCommandCenter::UnitCommandCenter( Game *pgame, int myplayernum, int myunitnum ); 00049 virtual ~UnitCommandCenter(); 00050 00051 //controls 00052 virtual int action( int actionnum, Vector destpos ); 00053 00054 //render 00055 virtual int render(); // render this unit 00056 00057 virtual int step(); 00058 00059 virtual void setUnitPosition( Vector pos ) { setPosition( pos ); } 00060 virtual Vector& getUnitPosition( void ) { return getPosition(); } 00061 private: 00062 //needed information 00063 int playerNum; // number of this player 00064 tgl_object *model; 00065 00066 Renderer *renderer; 00067 Game *game; 00068 Ground *ground; 00069 Player **players; //the other players including this 00070 00071 //unit information 00072 int unitNum; // number of this unit 00073 }; 00074 00075 00076 #endif