Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/gui/src/core/CMakeLists.txt @ 2846

Last change on this file since 2846 was 2844, checked in by rgrieder, 16 years ago

Implemented new GameState concept. It doesn't differ that much from the old one, but there's still lots of changes.
The most important change is that one GameState can occur multiple times in the hierarchy.

Short log:

  • No RootGameState anymore. Simply the highest is root.
  • Game::requestGameState(name) can refer to the parent, grandparent, great-grandparent, etc. or one of the children.
  • Requested states are saved. So if you select "level", the next request (even right after the call) will be relative to "level"
  • Game::popState() will simply unload the current one
  • Re added Main.cc again because Game as well as GameState have been moved to the core
  • Adapted all GameStates to the new system

Things should already work, except for network support because standalone only works with a little hack.
We can now start creating a better hierarchy.

  • Property svn:eol-style set to native
File size: 2.2 KB
Line 
1 #
2 #             ORXONOX - the hottest 3D action shooter ever to exist
3 #                             > www.orxonox.net <
4 #
5 #        This program is free software; you can redistribute it and/or
6 #         modify it under the terms of the GNU General Public License
7 #        as published by the Free Software Foundation; either version 2
8 #            of the License, or (at your option) any later version.
9 #
10 #       This program is distributed in the hope that it will be useful,
11 #        but WITHOUT ANY WARRANTY; without even the implied warranty of
12 #        MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13 #                 GNU General Public License for more details.
14 #
15 #   You should have received a copy of the GNU General Public License along
16 #      with this program; if not, write to the Free Software Foundation,
17 #     Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
18 #
19
20SET_SOURCE_FILES(CORE_SRC_FILES
21  Clock.cc
22  ConfigFileManager.cc
23  ConfigValueContainer.cc
24  Core.cc
25  Event.cc
26  Game.cc
27  GameState.cc
28  Language.cc
29  LuaBind.cc
30  ObjectListBase.cc
31  OrxonoxClass.cc
32
33  # command
34  ArgumentCompletionFunctions.cc
35  CommandEvaluation.cc
36  CommandExecutor.cc
37  CommandLine.cc
38  ConsoleCommand.cc
39  ConsoleCommandCompilation.cc
40  Executor.cc
41
42  # hierarchy
43  Factory.cc
44  Identifier.cc
45  MetaObjectList.cc
46
47  # level
48  BaseObject.cc
49  ClassTreeMask.cc
50  Loader.cc
51  Namespace.cc
52  NamespaceNode.cc
53  Template.cc
54  XMLPort.cc
55  XMLNameListener.cc
56
57  # shell
58  IRC.cc
59  Shell.cc
60  TclBind.cc
61  TclThreadManager.cc
62)
63ADD_SUBDIRECTORY(input)
64GET_ALL_HEADER_FILES(CORE_HDR_FILES)
65SET(CORE_FILES ${CORE_SRC_FILES} ${CORE_HDR_FILES})
66
67GENERATE_SOURCE_GROUPS(${CORE_FILES})
68GENERATE_TOLUA_BINDINGS(Core CORE_FILES INPUTFILES LuaBind.h CommandExecutor.h)
69
70ADD_LIBRARY(core SHARED ${CORE_FILES})
71
72SET_TARGET_PROPERTIES(core PROPERTIES DEFINE_SYMBOL "CORE_SHARED_BUILD")
73TARGET_LINK_LIBRARIES(core
74  ${OGRE_LIBRARY}
75  ${Boost_THREAD_LIBRARY}
76  ${Boost_FILESYSTEM_LIBRARY}
77  ${Boost_SYSTEM_LIBRARY}
78  ${Boost_DATE_TIME_LIBRARY} # MSVC only
79  ${LUA_LIBRARIES}
80  cpptcl_orxonox
81  ois_orxonox
82  tinyxml++_orxonox
83  tolua++_orxonox
84  util
85)
86
87ORXONOX_INSTALL(core)
Note: See TracBrowser for help on using the repository browser.