Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 5638 for code


Ignore:
Timestamp:
Aug 12, 2009, 5:13:28 PM (15 years ago)
Author:
landauf
Message:

Put all gamestates into a new plugin (gamestates)

Location:
code/branches/libraries/src/orxonox/gamestates
Files:
1 added
10 edited

Legend:

Unmodified
Added
Removed
  • code/branches/libraries/src/orxonox/gamestates/CMakeLists.txt

    r2896 r5638  
    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  PLUGIN
     15  DEFINE_SYMBOL
     16    "GAMESTATES_SHARED_BUILD"
     17  LINK_LIBRARIES
     18    orxonox
     19  SOURCE_FILES ${GAMESTATES_SRC_FILES}
     20)
  • code/branches/libraries/src/orxonox/gamestates/GSClient.h

    r3370 r5638  
    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/branches/libraries/src/orxonox/gamestates/GSDedicated.h

    r3370 r5638  
    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/branches/libraries/src/orxonox/gamestates/GSGraphics.h

    r3370 r5638  
    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/branches/libraries/src/orxonox/gamestates/GSIOConsole.h

    r3370 r5638  
    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/branches/libraries/src/orxonox/gamestates/GSLevel.h

    r3370 r5638  
    3030#define _GSLevel_H__
    3131
    32 #include "OrxonoxPrereqs.h"
     32#include "gamestates/GamestatesPrereqs.h"
    3333
    3434#include <string>
     
    3838namespace orxonox
    3939{
    40     class _OrxonoxExport GSLevel : public GameState, public OrxonoxClass
     40    class _GamestatesExport GSLevel : public GameState, public OrxonoxClass
    4141    {
    4242    public:
  • code/branches/libraries/src/orxonox/gamestates/GSMainMenu.h

    r3370 r5638  
    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/branches/libraries/src/orxonox/gamestates/GSRoot.h

    r3370 r5638  
    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/branches/libraries/src/orxonox/gamestates/GSServer.h

    r3370 r5638  
    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/branches/libraries/src/orxonox/gamestates/GSStandalone.h

    r3370 r5638  
    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.