Changeset 531
- Timestamp:
- Dec 15, 2007, 6:37:35 AM (17 years ago)
- Location:
- code/branches/FICN
- Files:
-
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/FICN/bin/run-script
r412 r531 22 22 fi 23 23 fi 24 exec ./main 24 exec ./main $1 -
code/branches/FICN/run
r414 r531 1 1 #!/bin/bash 2 2 cd bin 3 ./run-script 3 ./run-script $1 4 4 cd .. -
code/branches/FICN/src/network/PacketDecoder.cc
r514 r531 42 42 43 43 PacketDecoder::PacketDecoder(){} 44 45 PacketDecoder::~PacketDecoder(){} 44 46 45 47 //call this function out of an instance of PacketDecoder -
code/branches/FICN/src/network/PacketManager.h
r478 r531 45 45 public: 46 46 PacketDecoder(); 47 virtual ~PacketDecoder(); 47 48 //call this function to decode, it calls the right decoding function below 48 49 bool elaborate( ENetPacket* packet, int clientId ); -
code/branches/FICN/src/network/Synchronisable.cc
r405 r531 11 11 12 12 #include "Synchronisable.h" 13 #include "orxonox/core/CoreIncludes.h" 14 13 15 14 16 namespace network { … … 20 22 Synchronisable::Synchronisable() 21 23 { 24 RegisterRootObject(Synchronisable); 22 25 static int idCounter=0; 23 26 datasize=0; -
code/branches/FICN/src/orxonox/core/CoreIncludes.h
r497 r531 57 57 #define InternRegisterRootObject(ClassName) \ 58 58 if (orxonox::Identifier::isCreatingHierarchy() && !this->getParents()) \ 59 this->setParents(new IdentifierList()); \59 this->setParents(new orxonox::IdentifierList()); \ 60 60 InternRegisterObject(ClassName, true) 61 61 -
code/branches/FICN/src/orxonox/objects/Entity.cc
r515 r531 40 40 } 41 41 } 42 42 43 } -
code/branches/FICN/src/orxonox/objects/Entity.h
r515 r531 4 4 #include "BaseObject.h" 5 5 #include "../../tinyxml/tinyxml.h" 6 #include "network/Synchronisable.h" 6 7 7 8 namespace orxonox … … 17 18 18 19 private: 19 20 20 21 21 }; -
code/branches/FICN/src/orxonox/orxonox.cc
r530 r531 217 217 //TODO: read config file 218 218 //TODO: give config file to Ogre 219 219 220 if(argc >=2 && strcmp(argv[1], "server")==0) 220 221 { … … 224 225 { 225 226 clientInit(path); 226 } 227 standalone(path); 227 } else if(argc >=2 && strcmp(argv[1], "presentation")==0) 228 { 229 playableServer(path); 230 } else 231 standalone(path); 228 232 } 229 233 … … 272 276 createFrameListener(); 273 277 Factory::createClassHierarchy(); 278 startRenderLoop(); 279 } 280 281 void Orxonox::playableServer(std::string path) 282 { 283 ogre_->setConfigPath(path); 284 ogre_->setup(); 285 root_ = ogre_->getRoot(); 286 defineResources(); 287 setupRenderSystem(); 288 createRenderWindow(); 289 initializeResourceGroups(); 290 createScene(); 291 setupScene(); 292 setupInputSystem(); 293 Factory::createClassHierarchy(); 294 createFrameListener(); 295 try{ 296 server_g = new network::Server(); // add port and bindadress 297 server_g->open(); // open server and create listener thread 298 if(ogre_ && ogre_->getRoot()) 299 ogre_->getRoot()->addFrameListener(new network::ServerFrameListener()); // adds a framelistener for the server 300 std::cout << "network framelistener added" << std::endl; 301 } 302 catch(exception &e) 303 { 304 std::cout << "There was a problem initialising the server :(" << std::endl; 305 } 274 306 startRenderLoop(); 275 307 } -
code/branches/FICN/src/orxonox/orxonox.h
r515 r531 42 42 void clientInit(std::string path); 43 43 void standalone(std::string path); 44 void playableServer(std::string path); 44 45 void defineResources(); 45 46 void setupRenderSystem(); -
code/branches/FICN/src/orxonox/spaceship_steering.cc
r515 r531 35 35 maxSpeedLoopRightLeft) { 36 36 37 std::cout << "Steering was loaded" ;37 std::cout << "Steering was loaded" << std::endl; 38 38 moveForward_ = 0; 39 39 rotateUp_ = 0;
Note: See TracChangeset
for help on using the changeset viewer.