Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Aug 29, 2009, 10:19:38 PM (15 years ago)
Author:
landauf
Message:

merged libraries branch back to trunk

Location:
code/trunk
Files:
15 edited
1 copied

Legend:

Unmodified
Added
Removed
  • code/trunk

  • code/trunk/src/orxonox/gamestates/CMakeLists.txt

    r2896 r5693  
    1 ADD_SOURCE_FILES(ORXONOX_SRC_FILES
     1SET_SOURCE_FILES(GAMESTATES_SRC_FILES
    22  GSClient.cc
    33  GSDedicated.cc
     
    1010  GSStandalone.cc
    1111)
     12
     13ORXONOX_ADD_LIBRARY(gamestates
     14  MODULE
     15  DEFINE_SYMBOL
     16    "GAMESTATES_SHARED_BUILD"
     17  LINK_LIBRARIES
     18    orxonox
     19  SOURCE_FILES ${GAMESTATES_SRC_FILES}
     20)
  • code/trunk/src/orxonox/gamestates/GSClient.cc

    r3370 r5693  
    4040    DeclareGameState(GSClient, "client", false, true);
    4141
    42     SetCommandLineArgument(ip, "127.0.0.1").information("Sever IP as strin in the form #.#.#.#");
     42    SetCommandLineArgument(ip, "127.0.0.1").information("Sever IP as string in the form #.#.#.#");
    4343
    4444    GSClient::GSClient(const GameStateInfo& info)
  • code/trunk/src/orxonox/gamestates/GSClient.h

    r3370 r5693  
    3030#define _GSClient_H__
    3131
    32 #include "OrxonoxPrereqs.h"
     32#include "gamestates/GameStatesPrereqs.h"
    3333
    3434#include "core/GameState.h"
     
    3737namespace orxonox
    3838{
    39     class _OrxonoxExport GSClient : public GameState
     39    class _GameStatesExport GSClient : public GameState
    4040    {
    4141    public:
  • code/trunk/src/orxonox/gamestates/GSDedicated.h

    r3370 r5693  
    3030#define _GSDedicated_H__
    3131
    32 #include "OrxonoxPrereqs.h"
     32#include "gamestates/GameStatesPrereqs.h"
    3333
    3434#include "core/GameState.h"
     
    4444namespace orxonox
    4545{
    46    
    47     class _OrxonoxExport GSDedicated : public GameState
     46
     47    class _GameStatesExport GSDedicated : public GameState
    4848    {
    4949    public:
     
    6161        void setTerminalMode();
    6262        static void resetTerminalMode();
    63        
     63
    6464        void insertCharacter( unsigned int position, char c );
    6565        void deleteCharacter( unsigned int position );
    66        
     66
    6767        Server*                 server_;
    68        
     68
    6969        boost::thread           *inputThread_;
    7070        boost::recursive_mutex  inputLineMutex_;
     
    7676        std::queue<std::string> commandQueue_;
    7777        static termios*         originalTerminalSettings_;
    78        
     78
    7979        unsigned int            cursorX_;
    8080        unsigned int            cursorY_;
  • code/trunk/src/orxonox/gamestates/GSGraphics.cc

    r3370 r5693  
    4747#include "core/Loader.h"
    4848#include "core/XMLFile.h"
    49 #include "overlays/console/InGameConsole.h"
     49#include "InGameConsole.h"
    5050#include "sound/SoundManager.h"
    5151
    5252// HACK:
    53 #include "overlays/map/Map.h"
     53#include "Map.h"
    5454
    5555namespace orxonox
  • code/trunk/src/orxonox/gamestates/GSGraphics.h

    r3370 r5693  
    3636#define _GSGraphics_H__
    3737
    38 #include "OrxonoxPrereqs.h"
     38#include "gamestates/GameStatesPrereqs.h"
    3939#include "core/GameState.h"
    4040
     
    4747        This game state is only left out if we start a dedicated server where no graphics are present.
    4848    */
    49     class _OrxonoxExport GSGraphics : public GameState
     49    class _GameStatesExport GSGraphics : public GameState
    5050    {
    5151    public:
  • code/trunk/src/orxonox/gamestates/GSIOConsole.h

    r3370 r5693  
    3030#define _GSIOConsole_H__
    3131
    32 #include "OrxonoxPrereqs.h"
     32#include "gamestates/GameStatesPrereqs.h"
    3333#include "core/GameState.h"
    3434
    3535namespace orxonox
    3636{
    37     class _OrxonoxExport GSIOConsole : public GameState
     37    class _GameStatesExport GSIOConsole : public GameState
    3838    {
    3939    public:
  • code/trunk/src/orxonox/gamestates/GSLevel.cc

    r3370 r5693  
    4545#include "core/XMLFile.h"
    4646
    47 #include "interfaces/Tickable.h"
     47#include "tools/interfaces/Tickable.h"
    4848#include "objects/Radar.h"
    49 #include "objects/quest/QuestManager.h"
    50 #include "overlays/notifications/NotificationManager.h"
    5149#include "CameraManager.h"
    5250#include "LevelManager.h"
     
    110108        this->playerManager_ = new PlayerManager();
    111109
    112         this->questManager_ = new QuestManager();
    113 
    114         this->notificationManager_ = new NotificationManager();
     110        this->scope_GSLevel_ = new Scope<ScopeID::GSLevel>();
    115111
    116112        if (GameMode::isMaster())
     
    201197        }
    202198
    203         if (this->questManager_)
    204         {
    205             delete this->questManager_;
    206             this->questManager_ = NULL;
    207         }
    208 
    209         if (this->notificationManager_)
    210         {
    211             delete this->notificationManager_;
    212             this->notificationManager_ = NULL;
     199        if (this->scope_GSLevel_)
     200        {
     201            delete this->scope_GSLevel_;
     202            this->scope_GSLevel_ = NULL;
    213203        }
    214204
  • code/trunk/src/orxonox/gamestates/GSLevel.h

    r3370 r5693  
    3030#define _GSLevel_H__
    3131
    32 #include "OrxonoxPrereqs.h"
     32#include "gamestates/GameStatesPrereqs.h"
    3333
    3434#include <string>
     35#include "util/Scope.h"
    3536#include "core/OrxonoxClass.h"
    3637#include "core/GameState.h"
     
    3839namespace orxonox
    3940{
    40     class _OrxonoxExport GSLevel : public GameState, public OrxonoxClass
     41    class _GameStatesExport GSLevel : public GameState, public OrxonoxClass
    4142    {
    4243    public:
     
    6263        void keybindInternal(const std::string& command, bool bTemporary);
    6364
    64         KeyBinder*            keyBinder_;               //!< tool that loads and manages the input bindings
    65         InputState*           gameInputState_;          //!< input state for normal ingame playing
    66         InputState*           guiMouseOnlyInputState_;  //!< input state if we only need the mouse to use the GUI
    67         InputState*           guiKeysOnlyInputState_;   //!< input state if we only need the keys to use the GUI
    68         Radar*                radar_;                   //!< represents the Radar (not the HUD part)
    69         CameraManager*        cameraManager_;           //!< camera manager for this level
    70         PlayerManager*        playerManager_;           //!< player manager for this level
    71         QuestManager*         questManager_;
    72         NotificationManager*  notificationManager_;
     65        KeyBinder*               keyBinder_;               //!< tool that loads and manages the input bindings
     66        InputState*              gameInputState_;          //!< input state for normal ingame playing
     67        InputState*              guiMouseOnlyInputState_;  //!< input state if we only need the mouse to use the GUI
     68        InputState*              guiKeysOnlyInputState_;   //!< input state if we only need the keys to use the GUI
     69        Radar*                   radar_;                   //!< represents the Radar (not the HUD part)
     70        CameraManager*           cameraManager_;           //!< camera manager for this level
     71        PlayerManager*           playerManager_;           //!< player manager for this level
     72        Scope<ScopeID::GSLevel>* scope_GSLevel_;
    7373
    7474        //##### ConfigValues #####
  • code/trunk/src/orxonox/gamestates/GSMainMenu.h

    r3370 r5693  
    3030#define _GSMainMenu_H__
    3131
    32 #include "OrxonoxPrereqs.h"
     32#include "gamestates/GameStatesPrereqs.h"
    3333
    3434#include "util/OgreForwardRefs.h"
     
    3737namespace orxonox
    3838{
    39     class _OrxonoxExport GSMainMenu : public GameState
     39    class _GameStatesExport GSMainMenu : public GameState
    4040    {
    4141    public:
  • code/trunk/src/orxonox/gamestates/GSRoot.cc

    r3370 r5693  
    3838#include "ToluaBindOrxonox.h"
    3939#include "tools/Timer.h"
    40 #include "interfaces/TimeFactorListener.h"
    41 #include "interfaces/Tickable.h"
     40#include "tools/interfaces/TimeFactorListener.h"
     41#include "tools/interfaces/Tickable.h"
    4242#include "LevelManager.h"
    4343
  • code/trunk/src/orxonox/gamestates/GSRoot.h

    r3370 r5693  
    3030#define _GSRoot_H__
    3131
    32 #include "OrxonoxPrereqs.h"
     32#include "gamestates/GameStatesPrereqs.h"
    3333#include "core/GameState.h"
    3434
    3535namespace orxonox
    3636{
    37     class _OrxonoxExport GSRoot : public GameState
     37    class _GameStatesExport GSRoot : public GameState
    3838    {
    3939    public:
  • code/trunk/src/orxonox/gamestates/GSServer.h

    r3370 r5693  
    3030#define _GSServer_H__
    3131
    32 #include "OrxonoxPrereqs.h"
     32#include "gamestates/GameStatesPrereqs.h"
    3333
    3434#include "core/GameState.h"
     
    3737namespace orxonox
    3838{
    39     class _OrxonoxExport GSServer : public GameState
     39    class _GameStatesExport GSServer : public GameState
    4040    {
    4141    public:
  • code/trunk/src/orxonox/gamestates/GSStandalone.h

    r3370 r5693  
    3030#define _GSStandalone_H__
    3131
    32 #include "OrxonoxPrereqs.h"
     32#include "gamestates/GameStatesPrereqs.h"
    3333#include "core/GameState.h"
    3434
    3535namespace orxonox
    3636{
    37     class _OrxonoxExport GSStandalone : public GameState
     37    class _GameStatesExport GSStandalone : public GameState
    3838    {
    3939    public:
Note: See TracChangeset for help on using the changeset viewer.