Changeset 7204 for code/branches/consolecommands3/src/orxonox
- Timestamp:
- Aug 23, 2010, 1:08:14 AM (14 years ago)
- Location:
- code/branches/consolecommands3/src/orxonox
- Files:
-
- 24 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/consolecommands3/src/orxonox/ChatInputHandler.cc
r7163 r7204 29 29 #include "ChatInputHandler.h" 30 30 #include <core/ScopedSingletonManager.h> 31 #include "core/ConsoleCommand.h"32 31 #include "core/CoreIncludes.h" 33 32 #include "core/GUIManager.h" 34 33 #include "core/CorePrereqs.h" 34 #include "core/command/ConsoleCommand.h" 35 35 #include <CEGUIWindow.h> 36 36 #include <elements/CEGUIListbox.h> -
code/branches/consolecommands3/src/orxonox/OrxonoxPrecompiledHeaders.h
r5781 r7204 89 89 #include "network/synchronisable/Synchronisable.h" // 70 90 90 #include "util/MultiType.h" // 65 91 #include "core/ Executor.h" // 5591 #include "core/command/Executor.h" // 55 92 92 //#include "core/XMLPort.h" // 41 93 93 -
code/branches/consolecommands3/src/orxonox/Radar.cc
r7163 r7204 37 37 38 38 //#include "util/Math.h" 39 #include "core/ConsoleCommand.h"40 39 #include "core/ObjectList.h" 40 #include "core/command/ConsoleCommand.h" 41 41 #include "interfaces/RadarListener.h" 42 42 #include "controllers/HumanController.h" -
code/branches/consolecommands3/src/orxonox/Test.cc
r7163 r7204 29 29 #include "core/CoreIncludes.h" 30 30 #include "core/ConfigValueIncludes.h" 31 #include "core/ ConsoleCommand.h"31 #include "core/command/ConsoleCommand.h" 32 32 #include "network/NetworkFunction.h" 33 33 #include "Test.h" … … 37 37 { 38 38 CreateFactory ( Test ); 39 39 40 40 SetConsoleCommand(Test, printV1, true).accessLevel(AccessLevel::User); 41 41 SetConsoleCommand(Test, printV2, true).accessLevel(AccessLevel::User); … … 44 44 SetConsoleCommand(Test, call, true).accessLevel(AccessLevel::User); 45 45 SetConsoleCommand(Test, call2, true).accessLevel(AccessLevel::User); 46 47 46 47 48 48 //void=* aaaaa = copyPtr<sizeof(&Test::printV1)>( &NETWORK_FUNCTION_POINTER, &Test::printV1 ); 49 49 //void* NETWORK_FUNCTION_TEST_B = memcpy(&NETWORK_FUNCTION_POINTER, &a, sizeof(a)); 50 50 // NetworkFunctionBase* NETWORK_FUNCTION_TEST_C = new NetworkFunctionStatic( createFunctor(&Test::printV1), "bla", NETWORK_FUNCTION_POINTER ); 51 51 52 52 registerStaticNetworkFunction( &Test::printV1 ); 53 53 registerMemberNetworkFunction( Test, checkU1 ); 54 54 registerMemberNetworkFunction( Test, printBlaBla ); 55 55 56 56 Test* Test::instance_ = 0; 57 57 … … 78 78 SetConfigValue ( u3, 3 )/*.callback ( this, &Test::checkV3 )*/; 79 79 SetConfigValue ( u4, 4 )/*.callback ( this, &Test::checkV4 )*/; 80 80 81 81 SetConfigValue ( s1, 1 )/*.callback ( this, &Test::checkV1 )*/; 82 82 SetConfigValue ( s2, 2 )/*.callback ( this, &Test::checkV2 )*/; … … 89 89 { 90 90 registerVariable ( this->mySet_, VariableDirection::ToClient ); 91 91 92 92 // registerVariable ( u1, VariableDirection::ToClient, new NetworkCallback<Test> ( this, &Test::checkU1 )); 93 93 // registerVariable ( u2, VariableDirection::ToServer, new NetworkCallback<Test> ( this, &Test::checkU2 )); 94 94 // registerVariable ( u3, Bidirectionality::ServerMaster, new NetworkCallback<Test> ( this, &Test::checkU3 ), true ); 95 95 // registerVariable ( u4, Bidirectionality::ClientMaster, new NetworkCallback<Test> ( this, &Test::checkU4 ), true ); 96 96 97 97 // registerVariable ( s1, VariableDirection::ToClient, new NetworkCallback<Test> ( this, &Test::checkS1 )); 98 98 // registerVariable ( s2, VariableDirection::ToServer, new NetworkCallback<Test> ( this, &Test::checkS2 )); 99 99 // registerVariable ( s3, Bidirectionality::ServerMaster, new NetworkCallback<Test> ( this, &Test::checkS3 ), true ); 100 100 // registerVariable ( s4, Bidirectionality::ClientMaster, new NetworkCallback<Test> ( this, &Test::checkS4 ), true ); 101 101 102 102 // registerVariable ( pointer_, VariableDirection::ToClient, new NetworkCallback<Test> ( this, &Test::printPointer ) ); 103 103 } 104 104 105 105 void Test::call(unsigned int clientID) 106 106 { … … 108 108 callStaticNetworkFunction( &Test::printV1, clientID ); 109 109 } 110 110 111 111 void Test::call2(unsigned int clientID, std::string s1, std::string s2, std::string s3, std::string s4) 112 112 { 113 113 callMemberNetworkFunction( Test, printBlaBla, this->getObjectID(), clientID, s1, s2, s3, s4, s4 ); 114 114 } 115 115 116 116 void Test::tick(float dt) 117 117 { … … 132 132 // callMemberNetworkFunction( Test, checkU1, this->getObjectID(), 0 ); 133 133 } 134 134 135 135 void Test::printBlaBla(std::string s1, std::string s2, std::string s3, std::string s4, std::string s5) 136 136 { 137 137 COUT(0) << s1 << s2 << s3 << s4 << s5 << endl; 138 138 } 139 139 140 140 void Test::checkU1(){ COUT(1) << "U1 changed: " << u1 << std::endl; } 141 141 void Test::checkU2(){ COUT(1) << "U2 changed: " << u2 << std::endl; } … … 147 147 void Test::checkS3(){ COUT(1) << "S3 changed: " << s3 << std::endl; } 148 148 void Test::checkS4(){ COUT(1) << "S4 changed: " << s4 << std::endl; } 149 149 150 150 void Test::printPointer(){ CCOUT(1) << "pointer: " << this->pointer_ << endl; } 151 151 -
code/branches/consolecommands3/src/orxonox/controllers/AIController.cc
r7168 r7204 31 31 #include "util/Math.h" 32 32 #include "core/CoreIncludes.h" 33 #include "core/ Executor.h"33 #include "core/command/Executor.h" 34 34 #include "worldentities/ControllableEntity.h" 35 35 #include "worldentities/pawns/Pawn.h" -
code/branches/consolecommands3/src/orxonox/controllers/ArtificialController.cc
r7163 r7204 33 33 34 34 #include "util/Math.h" 35 #include "core/ConsoleCommand.h"36 35 #include "core/CoreIncludes.h" 37 36 #include "core/XMLPort.h" 37 #include "core/command/ConsoleCommand.h" 38 38 #include "worldentities/ControllableEntity.h" 39 39 #include "worldentities/pawns/Pawn.h" -
code/branches/consolecommands3/src/orxonox/controllers/DroneController.cc
r7163 r7204 32 32 33 33 #include "core/CoreIncludes.h" 34 #include "core/ Executor.h"34 #include "core/command/Executor.h" 35 35 #include "worldentities/ControllableEntity.h" 36 36 -
code/branches/consolecommands3/src/orxonox/controllers/HumanController.cc
r7163 r7204 30 30 31 31 #include "core/CoreIncludes.h" 32 #include "core/ ConsoleCommand.h"32 #include "core/command/ConsoleCommand.h" 33 33 #include "worldentities/ControllableEntity.h" 34 34 #include "worldentities/pawns/Pawn.h" -
code/branches/consolecommands3/src/orxonox/controllers/NewHumanController.cc
r7163 r7204 37 37 38 38 #include "core/CoreIncludes.h" 39 #include "core/ ConsoleCommand.h"39 #include "core/command/ConsoleCommand.h" 40 40 #include "worldentities/ControllableEntity.h" 41 41 #include "worldentities/pawns/Pawn.h" -
code/branches/consolecommands3/src/orxonox/gamestates/GSGraphics.cc
r7163 r7204 35 35 #include "GSGraphics.h" 36 36 37 #include "core/CommandExecutor.h"38 #include "core/ConsoleCommand.h"39 37 #include "core/Game.h" 40 38 #include "core/GUIManager.h" 39 #include "core/command/ConsoleCommand.h" 40 #include "core/command/CommandExecutor.h" 41 41 42 42 namespace orxonox -
code/branches/consolecommands3/src/orxonox/gamestates/GSLevel.cc
r6746 r7204 36 36 #include "core/input/InputState.h" 37 37 #include "core/input/KeyBinderManager.h" 38 #include "core/ConsoleCommand.h"39 38 #include "core/Game.h" 40 39 #include "core/GameMode.h" … … 42 41 #include "core/Loader.h" 43 42 #include "core/XMLFile.h" 43 #include "core/command/ConsoleCommand.h" 44 44 45 45 #include "LevelManager.h" -
code/branches/consolecommands3/src/orxonox/gamestates/GSMainMenu.cc
r6746 r7204 33 33 #include "core/input/KeyBinderManager.h" 34 34 #include "core/Game.h" 35 #include "core/ConsoleCommand.h"36 35 #include "core/ConfigValueIncludes.h" 37 36 #include "core/CoreIncludes.h" 38 37 #include "core/GraphicsManager.h" 39 38 #include "core/GUIManager.h" 39 #include "core/command/ConsoleCommand.h" 40 40 #include "Scene.h" 41 41 #include "sound/AmbientSound.h" -
code/branches/consolecommands3/src/orxonox/gamestates/GSRoot.cc
r7172 r7204 31 31 #include "util/Clock.h" 32 32 #include "core/BaseObject.h" 33 #include "core/ConsoleCommand.h"34 33 #include "core/Game.h" 35 34 #include "core/GameMode.h" 35 #include "core/command/ConsoleCommand.h" 36 36 #include "network/NetworkFunction.h" 37 37 #include "tools/Timer.h" -
code/branches/consolecommands3/src/orxonox/gametypes/Gametype.cc
r7163 r7204 33 33 #include "core/ConfigValueIncludes.h" 34 34 #include "core/GameMode.h" 35 #include "core/ ConsoleCommand.h"35 #include "core/command/ConsoleCommand.h" 36 36 37 37 #include "infos/PlayerInfo.h" -
code/branches/consolecommands3/src/orxonox/gametypes/TeamBaseMatch.cc
r5929 r7204 30 30 31 31 #include "core/CoreIncludes.h" 32 #include "core/ Executor.h"32 #include "core/command/Executor.h" 33 33 #include "worldentities/pawns/TeamBaseMatchBase.h" 34 34 #include "infos/PlayerInfo.h" -
code/branches/consolecommands3/src/orxonox/graphics/ParticleSpawner.cc
r5929 r7204 31 31 #include "core/CoreIncludes.h" 32 32 #include "core/EventIncludes.h" 33 #include "core/Executor.h"34 33 #include "core/XMLPort.h" 34 #include "core/command/Executor.h" 35 35 #include "tools/ParticleInterface.h" 36 36 -
code/branches/consolecommands3/src/orxonox/overlays/InGameConsole.cc
r6502 r7204 47 47 #include "core/CoreIncludes.h" 48 48 #include "core/ConfigValueIncludes.h" 49 #include "core/ConsoleCommand.h"50 49 #include "core/ScopedSingletonManager.h" 50 #include "core/command/ConsoleCommand.h" 51 51 #include "core/input/InputManager.h" 52 52 #include "core/input/InputState.h" -
code/branches/consolecommands3/src/orxonox/overlays/InGameConsole.h
r6417 r7204 37 37 #include "util/OgreForwardRefs.h" 38 38 #include "util/Singleton.h" 39 #include "core/Shell.h"40 39 #include "core/WindowEventListener.h" 40 #include "core/command/Shell.h" 41 41 42 42 namespace orxonox -
code/branches/consolecommands3/src/orxonox/overlays/OrxonoxOverlay.cc
r6799 r7204 48 48 #include "core/CoreIncludes.h" 49 49 #include "core/XMLPort.h" 50 #include "core/ ConsoleCommand.h"50 #include "core/command/ConsoleCommand.h" 51 51 52 52 #include "OverlayGroup.h" -
code/branches/consolecommands3/src/orxonox/overlays/OverlayGroup.cc
r6417 r7204 34 34 #include "OverlayGroup.h" 35 35 36 #include "core/ConsoleCommand.h"37 36 #include "core/CoreIncludes.h" 38 37 #include "core/XMLPort.h" 38 #include "core/command/ConsoleCommand.h" 39 39 #include "OrxonoxOverlay.h" 40 40 -
code/branches/consolecommands3/src/orxonox/sound/WorldSound.cc
r7163 r7204 37 37 #include "Scene.h" 38 38 #include "SoundManager.h" 39 #include <core/ConsoleCommandCompilation.h>40 39 41 40 namespace orxonox -
code/branches/consolecommands3/src/orxonox/worldentities/BigExplosion.cc
r7176 r7204 31 31 #include "util/Exception.h" 32 32 #include "core/CoreIncludes.h" 33 #include "core/Executor.h"34 33 #include "core/GameMode.h" 34 #include "core/command/Executor.h" 35 35 #include "tools/ParticleInterface.h" 36 36 #include "Scene.h" -
code/branches/consolecommands3/src/orxonox/worldentities/ExplosionChunk.cc
r7174 r7204 30 30 31 31 #include "core/CoreIncludes.h" 32 #include "core/Executor.h"33 32 #include "core/GameMode.h" 33 #include "core/command/Executor.h" 34 34 #include "util/Exception.h" 35 35 #include "Scene.h" -
code/branches/consolecommands3/src/orxonox/worldentities/MovableEntity.cc
r6417 r7204 31 31 32 32 #include "core/CoreIncludes.h" 33 #include "core/Executor.h"34 33 #include "core/GameMode.h" 35 34 #include "core/XMLPort.h" 35 #include "core/command/Executor.h" 36 36 #include "worldentities/pawns/Pawn.h" 37 37
Note: See TracChangeset
for help on using the changeset viewer.