- Timestamp:
- Feb 2, 2006, 2:45:07 PM (19 years ago)
- Location:
- trunk/src
- Files:
-
- 47 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/graphics/effects/graphics_effect.cc
r6979 r6981 20 20 #include "graphics_effect.h" 21 21 22 #include "graphics_engine.h"23 22 #include "load_param.h" 24 23 -
trunk/src/lib/graphics/importer/height_map.h
r6956 r6981 28 28 class HeightMap; 29 29 30 class Tile 30 class Tile 31 31 { 32 32 public: … … 40 40 float x; 41 41 float z; 42 ~Tile();42 virtual ~Tile(); 43 43 44 44 … … 47 47 HeightMap* hmref; 48 48 VertexArrayModel* highResModel; 49 VertexArrayModel* lowResModel; 49 VertexArrayModel* lowResModel; 50 50 int highRes; 51 51 int lowRes; … … 60 60 void load(int Mode); 61 61 void load(const char*, int Mode); 62 void scale( Vector V); 62 void scale( Vector V); 63 63 void setAbsCoor(Vector V); 64 float getHeight(float x, float y); 64 float getHeight(float x, float y); 65 65 float getNormal(float x, float y); 66 66 HeightMap(); 67 67 HeightMap(const char*); 68 68 HeightMap(const char*, const char*); 69 ~HeightMap();69 virtual ~HeightMap(); 70 70 71 71 friend class Tile; … … 74 74 SDL_Surface* heightMap; 75 75 SDL_Surface* colourMap; 76 unsigned char* heights; 76 unsigned char* heights; 77 77 unsigned char* colours; 78 78 … … 80 80 void drawRect(int xBottomLeft, int yBottomLeft, int xTopRight, int yTopRight ); 81 81 void fixBoarder(int xBottomLeft, int yBottomLeft, int xTopRight, int yTopRight); 82 Vector ** normalVectorField ; 82 Vector ** normalVectorField ; 83 83 Tile *** tiles; 84 84 Vector camCoords; 85 Vector offsetCoords; 85 Vector offsetCoords; 86 86 Material * tmp_mat; 87 87 Material* red_mat; -
trunk/src/lib/graphics/importer/media_container.h
r6731 r6981 45 45 46 46 MediaContainer(const char* filename = NULL); 47 ~MediaContainer();47 virtual ~MediaContainer(); 48 48 49 49 bool loadMedia(const char* filename); … … 53 53 54 54 private: 55 55 56 56 GLuint getNextFrame(); 57 57 void unloadMedia(); -
trunk/src/lib/graphics/importer/movie_player.h
r6731 r6981 59 59 60 60 MoviePlayer(const char* filename = NULL); 61 ~MoviePlayer();61 virtual ~MoviePlayer(); 62 62 63 63 bool loadMovie(const char* filename); -
trunk/src/lib/graphics/importer/texture.h
r6465 r6981 20 20 Texture(const char* imageName = NULL, GLenum target = GL_TEXTURE_2D); 21 21 // Texture(TEXTURE_TYPE type, int resolution); 22 ~Texture();22 virtual ~Texture(); 23 23 24 24 bool loadImage(const char* imageName, GLenum target = GL_TEXTURE_2D); -
trunk/src/lib/graphics/importer/texture_sequence.h
r6532 r6981 23 23 TextureSequence(unsigned int count = 0, ...); 24 24 // Texture(TEXTURE_TYPE type, int resolution); 25 ~TextureSequence();25 virtual ~TextureSequence(); 26 26 27 27 bool loadImageSeries(unsigned int count, ...); -
trunk/src/lib/graphics/text_engine/text.h
r5768 r6981 40 40 public: 41 41 Text(const char* fontFile = NULL, unsigned int fontSize = TEXT_DEFAULT_SIZE); 42 ~Text();42 virtual ~Text(); 43 43 void init(); 44 44 -
trunk/src/lib/gui/gtk_gui/gui.h
r4836 r6981 24 24 public: 25 25 Gui(int argc, char *argv[]); 26 ~Gui();26 virtual ~Gui(); 27 27 28 28 void startGui(); -
trunk/src/lib/gui/gtk_gui/gui_audio.h
r4746 r6981 14 14 public: 15 15 GuiAudio(); 16 ~GuiAudio();16 virtual ~GuiAudio(); 17 17 }; 18 18 #endif /* _GUI_AUDIO_H */ -
trunk/src/lib/gui/gtk_gui/gui_banner.h
r4746 r6981 16 16 public: 17 17 GuiBanner(); 18 ~GuiBanner();18 virtual ~GuiBanner(); 19 19 }; 20 20 -
trunk/src/lib/gui/gtk_gui/gui_exec.h
r5319 r6981 34 34 public: 35 35 GuiExec(); 36 ~GuiExec();36 virtual ~GuiExec(); 37 37 38 38 void setConfDir(const char* confDir); -
trunk/src/lib/gui/gtk_gui/gui_flags.h
r4836 r6981 22 22 public: 23 23 GuiFlags(); 24 ~GuiFlags();24 virtual ~GuiFlags(); 25 25 26 26 void setTextFromFlags(Widget* widget); 27 27 static void flagsText(Widget* widget, void* flagInfo); 28 28 29 29 //! Struct that handles flag information. 30 30 struct FlagInfo -
trunk/src/lib/gui/gtk_gui/gui_keys.h
r4746 r6981 28 28 public: 29 29 GuiKeys(); 30 ~GuiKeys();30 virtual ~GuiKeys(); 31 31 32 32 static Window* inputWindow; //!< A Window that gets keyboard clicks. Static, because only one needed. … … 55 55 MiscKeys(); 56 56 57 Button* getOpenButton(); 57 Button* getOpenButton(); 58 58 }; 59 59 -
trunk/src/lib/gui/gtk_gui/gui_update.h
r4944 r6981 100 100 public: 101 101 GuiUpdate(); 102 ~GuiUpdate();102 virtual ~GuiUpdate(); 103 103 104 104 #ifdef HAVE_CURL -
trunk/src/lib/gui/gtk_gui/gui_video.h
r4746 r6981 18 18 private: 19 19 // Button* advancedWindowGetButton(); 20 20 21 21 public: 22 22 GuiVideo(); 23 ~GuiVideo();23 virtual ~GuiVideo(); 24 24 25 25 private: -
trunk/src/lib/network/connection_monitor.h
r5822 r6981 14 14 public: 15 15 ConnectionMonitor(); 16 ~ConnectionMonitor();16 virtual ~ConnectionMonitor(); 17 17 18 18 void processPacket(byte* packet, unsigned int packetLength); -
trunk/src/lib/network/converter.h
r6959 r6981 30 30 static int intToByteArray(int x, byte* a, int length); 31 31 static int byteArrayToInt(const byte* a, int* x); 32 32 33 33 static int _intToByteArray(int x, byte* a, int length); 34 34 static int _byteArrayToInt(const byte* a, int* x); … … 60 60 private: 61 61 Converter(); 62 ~Converter();62 virtual ~Converter(); 63 63 }; 64 64 -
trunk/src/lib/network/data_stream.h
r6341 r6981 20 20 DataStream(); 21 21 DataStream(DataStream& inStream, DataStream& outStream); 22 ~DataStream();22 virtual ~DataStream(); 23 23 24 24 -
trunk/src/lib/network/network_game_manager.h
r6737 r6981 76 76 { 77 77 public: 78 ~NetworkGameManager();78 virtual ~NetworkGameManager(); 79 79 80 80 static NetworkGameManager* NetworkGameManager::getInstance() -
trunk/src/lib/network/network_manager.h
r6695 r6981 31 31 inline static NetworkManager* getInstance() { if (!NetworkManager::singletonRef) NetworkManager::singletonRef = new NetworkManager(); 32 32 return NetworkManager::singletonRef; } 33 ~NetworkManager();33 virtual ~NetworkManager(); 34 34 35 35 void initialize(); -
trunk/src/lib/network/network_protocol.h
r6341 r6981 27 27 public: 28 28 NetworkProtocol(); 29 ~NetworkProtocol();29 virtual ~NetworkProtocol(); 30 30 31 31 int createHeader(byte* data, int length, int bufferLength, const Synchronizeable& source); -
trunk/src/lib/network/network_socket.h
r6959 r6981 87 87 88 88 NetworkSocket(); 89 ~NetworkSocket();89 virtual ~NetworkSocket(); 90 90 NetworkSocket(IPaddress ip); 91 91 NetworkSocket(TCPsocket sock); -
trunk/src/lib/network/network_stream.h
r6695 r6981 35 35 NetworkStream(unsigned int port); 36 36 37 ~NetworkStream();37 virtual ~NetworkStream(); 38 38 void init(); 39 39 -
trunk/src/lib/network/server_socket.h
r6139 r6981 37 37 ServerSocket(); 38 38 ServerSocket( unsigned int port ); 39 ~ServerSocket();39 virtual ~ServerSocket(); 40 40 bool listen( unsigned int port ); 41 41 NetworkSocket* getNewSocket( void ); -
trunk/src/lib/parser/ini_parser/ini_parser.h
r5952 r6981 43 43 public: 44 44 IniParser (const char* filename = NULL); 45 ~IniParser ();45 virtual ~IniParser (); 46 46 47 47 /** @returns true if the file is opened, false otherwise*/ -
trunk/src/lib/shell/shell_command_class.h
r5781 r6981 37 37 private: 38 38 ShellCommandClass(const char* className); 39 ~ShellCommandClass();39 virtual ~ShellCommandClass(); 40 40 41 41 static const ShellCommandClass* isRegistered(const char* className); -
trunk/src/lib/sound/ogg_player.h
r6872 r6981 28 28 public: 29 29 OggPlayer(const char* fileName = NULL); 30 ~OggPlayer();30 virtual ~OggPlayer(); 31 31 32 32 bool open(const char* fileName); -
trunk/src/lib/sound/sound_buffer.h
r6836 r6981 18 18 public: 19 19 SoundBuffer(const char* fileName); 20 ~SoundBuffer();20 virtual ~SoundBuffer(); 21 21 22 22 bool loadWAV(const char* fileName); -
trunk/src/lib/sound/sound_source.h
r6634 r6981 19 19 public: 20 20 SoundSource(const PNode* sourceNode = NULL, const SoundBuffer* buffer = NULL); 21 ~SoundSource();21 virtual ~SoundSource(); 22 22 23 23 // user interaction -
trunk/src/story_entities/game_world.cc
r6878 r6981 190 190 PRINTF(3)("GameWorld::~GameWorld() - unloading the current GameWorld\n"); 191 191 192 this->dataTank->unloadData(); 193 192 194 if (this->dataXML) 193 195 delete this->dataXML; 194 196 195 this->dataTank->unloadData();196 197 } 197 198 -
trunk/src/story_entities/game_world_data.cc
r6863 r6981 247 247 // erease everything that is left. 248 248 // delete PNode::getNullParent(); // not needed as this is also done in the next step (and also much cleaner) 249 249 const std::list<BaseObject*>* nodeList; 250 250 //secondary cleanup of PNodes; 251 const std::list<BaseObject*>*nodeList = ClassList::getList(CL_PARENT_NODE);251 nodeList = ClassList::getList(CL_PARENT_NODE); 252 252 if (nodeList != NULL) 253 253 while (!nodeList->empty()) 254 254 delete nodeList->front(); 255 256 255 /* remove the player object */ 257 256 if( this->localPlayer) 258 257 delete this->localPlayer; 258 259 // nodeList = ClassList::getList(CL_GRAPHICS_EFFECT); 260 // if (nodeList != NULL) 261 // while (!nodeList->empty()) 262 // delete nodeList->front(); 263 // 264 // nodeList = ClassList::getList(CL_ELEMENT_2D); 265 // if (nodeList != NULL) 266 // while (!nodeList->empty()) 267 // delete nodeList->front(); 268 269 270 259 271 260 272 // unload the resources !! -
trunk/src/story_entities/simple_game_menu.h
r6874 r6981 25 25 public: 26 26 MenuLayer() {} 27 ~MenuLayer() {}27 virtual ~MenuLayer() {} 28 28 29 29 -
trunk/src/subprojects/framework.h
r4662 r6981 17 17 class Framework { 18 18 public: 19 ~Framework();19 virtual ~Framework(); 20 20 21 21 /** \returns a Pointer to the only object of this Class */ -
trunk/src/subprojects/network/network_unit_test.h
r5822 r6981 15 15 public: 16 16 NetworkUnitTest(); 17 ~NetworkUnitTest();17 virtual ~NetworkUnitTest(); 18 18 19 19 void start(); -
trunk/src/subprojects/network/read_sync.h
r6341 r6981 14 14 public: 15 15 ReadSync(const char* name); 16 ~ReadSync();16 virtual ~ReadSync(); 17 17 18 18 virtual int writeBytes(const byte* data, int length, int sender); -
trunk/src/subprojects/network/simple_sync.h
r6341 r6981 14 14 public: 15 15 SimpleSync(const char* name); 16 ~SimpleSync();16 virtual ~SimpleSync(); 17 17 18 18 virtual int writeBytes(const byte* data, int length, int sender); -
trunk/src/subprojects/network/write_sync.h
r6341 r6981 14 14 public: 15 15 WriteSync(const char* name); 16 ~WriteSync();16 virtual ~WriteSync(); 17 17 18 18 virtual int writeBytes(const byte* data, int length, int sender); -
trunk/src/util/loading/game_loader.h
r6862 r6981 40 40 { 41 41 public: 42 ~GameLoader ();42 virtual ~GameLoader (); 43 43 /** this class is a singleton class @returns an instance of itself */ 44 44 static GameLoader* getInstance() { if(singletonRef == NULL) singletonRef = new GameLoader(); return singletonRef; } -
trunk/src/util/loading/load_param.h
r6613 r6981 89 89 public: 90 90 CLoadParam(const TiXmlElement* root, const char* paramName, BaseObject* object, const Executor& executor, bool inLoadCycle = false); 91 ~CLoadParam();91 virtual ~CLoadParam(); 92 92 93 93 CLoadParam& describe(const char* descriptionText); -
trunk/src/util/track/track_manager.h
r6512 r6981 44 44 public: 45 45 TrackElement(); 46 ~TrackElement();46 virtual ~TrackElement(); 47 47 48 48 TrackElement* findByID(unsigned int trackID); -
trunk/src/world_entities/environments/water.h
r6766 r6981 23 23 public: 24 24 Water(const TiXmlElement* root = NULL); 25 ~Water();25 virtual ~Water(); 26 26 27 27 void loadParams(const TiXmlElement* root); -
trunk/src/world_entities/movie_entity.h
r6731 r6981 30 30 public: 31 31 MovieEntity (const TiXmlElement* root = NULL); 32 ~MovieEntity ();32 virtual ~MovieEntity (); 33 33 34 34 virtual void draw () const; -
trunk/src/world_entities/npcs/npc.h
r6341 r6981 12 12 public: 13 13 NPC (); 14 ~NPC ();14 virtual ~NPC (); 15 15 16 16 -
trunk/src/world_entities/npcs/npc_test.h
r6054 r6981 12 12 public: 13 13 NPC2 (); 14 ~NPC2 ();14 virtual ~NPC2 (); 15 15 16 16 -
trunk/src/world_entities/npcs/npc_test1.h
r6054 r6981 11 11 public: 12 12 NPCTest1 (); 13 ~NPCTest1 ();13 virtual ~NPCTest1 (); 14 14 15 15 -
trunk/src/world_entities/recorder.h
r6775 r6981 1 1 /*! 2 2 * @file recorder.h 3 * 3 * 4 4 */ 5 5 … … 33 33 AVPacket packet; 34 34 double video_pts; 35 35 36 36 uint8_t *picture_buf; 37 37 int size; … … 48 48 public: 49 49 Recorder (const TiXmlElement* root = NULL); 50 ~Recorder ();50 virtual ~Recorder (); 51 51 52 52 virtual void draw () const; -
trunk/src/world_entities/weapons/weapon_manager.h
r6972 r6981 53 53 WeaponManager(WorldEntity* parent); 54 54 WeaponManager(const TiXmlElement* root); 55 ~WeaponManager();55 virtual ~WeaponManager(); 56 56 57 57 void init();
Note: See TracChangeset
for help on using the changeset viewer.