Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 4833 in orxonox.OLD for orxonox/trunk/src/orxonox.cc


Ignore:
Timestamp:
Jul 11, 2005, 5:46:05 PM (20 years ago)
Author:
bensch
Message:

orxonox/trunk: fight against the mighty segfault

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/orxonox.cc

    r4830 r4833  
    5252#include <string.h>
    5353
    54 int verbose = 4;
     54int verbose = 3;
    5555
    5656using namespace std;
     
    9999  ClassList::debug(0);
    100100
    101   PRINT(3)("===================================================\n" \
     101  PRINT(3)
     102      ("===================================================\n" \
    102103      "Thanks for playing orxonox.\n" \
    103104      "visit: http://www.orxonox.ethz.ch for new versions.\n" \
     
    127128
    128129/**
    129    \brief initialize Orxonox with command line
    130 */
     130 * initialize Orxonox with command line
     131 */
    131132int Orxonox::init (int argc, char** argv)
    132133{
     
    152153
    153154/**
    154    \brief initializes SDL and OpenGL
     155 * initializes SDL and OpenGL
    155156*/
    156157int Orxonox::initVideo()
     
    167168
    168169/**
    169    \brief initializes the sound engine
    170 */
     170 * initializes the sound engine
     171 */
    171172int Orxonox::initSound()
    172173{
     
    179180
    180181/**
    181  * @brief initializes input functions
    182 */
     182 * initializes input functions
     183 */
    183184int Orxonox::initInput()
    184185{
     
    186187
    187188  EventHandler::getInstance()->init();
    188 
    189   return 0;
    190 }
    191 
    192 
    193 /**
    194 * @brief initializes network system
    195 */
     189  EventHandler::getInstance()->subscribe(GraphicsEngine::getInstance(), ES_ALL, EV_VIDEO_RESIZE);
     190
     191
     192  return 0;
     193}
     194
     195
     196/**
     197 * initializes network system
     198 */
    196199int Orxonox::initNetworking()
    197200{
     
    204207
    205208/**
    206  * @brief initializes and loads resource files
    207  */
    208  int Orxonox::initResources()
     209 * initializes and loads resource files
     210 */
     211int Orxonox::initResources()
    209212{
    210213  PRINTF(3)("> Initializing resources\n");
     
    264267
    265268/**
    266    \brief starts the orxonox game or menu
    267 
    268    here is the central orxonox state manager. There are currently two states
    269    - menu
    270    - game-play
    271    both states manage their states themselfs again.
     269 *
     270 * @brief starts the orxonox game or menu
     271 * here is the central orxonox state manager. There are currently two states
     272 * - menu
     273 * - game-play
     274 * both states manage their states themselfs again.
    272275*/
    273276void Orxonox::start()
     
    283286
    284287/**
    285    \brief handles sprecial events from localinput
    286    \param event: an event not handled by the CommandNode
    287 */
     288 * handles sprecial events from localinput
     289 * @param event: an event not handled by the CommandNode
     290 */
    288291// void Orxonox::graphicsHandler(SDL_Event* event)
    289292// {
     
    311314**********************************/
    312315/**
    313    \brief main function
    314 
    315    here the journey begins
     316 *
     317 * @brief main function
     318 *
     319 * here the journey begins
    316320*/
    317321int main(int argc, char** argv)
Note: See TracChangeset for help on using the changeset viewer.