Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 531


Ignore:
Timestamp:
Dec 15, 2007, 6:37:35 AM (17 years ago)
Author:
scheusso
Message:

started implementing presentation ;)

Location:
code/branches/FICN
Files:
11 edited

Legend:

Unmodified
Added
Removed
  • code/branches/FICN/bin/run-script

    r412 r531  
    2222        fi
    2323fi
    24 exec ./main
     24exec ./main $1
  • code/branches/FICN/run

    r414 r531  
    11#!/bin/bash
    22cd bin
    3 ./run-script
     3./run-script $1
    44cd ..
  • code/branches/FICN/src/network/PacketDecoder.cc

    r514 r531  
    4242
    4343PacketDecoder::PacketDecoder(){}
     44
     45PacketDecoder::~PacketDecoder(){}
    4446
    4547//call this function out of an instance of PacketDecoder
  • code/branches/FICN/src/network/PacketManager.h

    r478 r531  
    4545public:
    4646        PacketDecoder();
     47  virtual ~PacketDecoder();
    4748        //call this function to decode, it calls the right decoding function below
    4849        bool elaborate( ENetPacket* packet, int clientId );
  • code/branches/FICN/src/network/Synchronisable.cc

    r405 r531  
    1111
    1212#include "Synchronisable.h"
     13#include "orxonox/core/CoreIncludes.h"
     14
    1315
    1416namespace network {
     
    2022Synchronisable::Synchronisable()
    2123{
     24  RegisterRootObject(Synchronisable);
    2225  static int idCounter=0;
    2326  datasize=0;
  • code/branches/FICN/src/orxonox/core/CoreIncludes.h

    r497 r531  
    5757#define InternRegisterRootObject(ClassName) \
    5858    if (orxonox::Identifier::isCreatingHierarchy() && !this->getParents()) \
    59         this->setParents(new IdentifierList()); \
     59        this->setParents(new orxonox::IdentifierList()); \
    6060    InternRegisterObject(ClassName, true)
    6161
  • code/branches/FICN/src/orxonox/objects/Entity.cc

    r515 r531  
    4040        }       
    4141   }
     42   
    4243}
  • code/branches/FICN/src/orxonox/objects/Entity.h

    r515 r531  
    44#include "BaseObject.h"
    55#include "../../tinyxml/tinyxml.h"
     6#include "network/Synchronisable.h"
    67
    78namespace orxonox
     
    1718
    1819        private:
    19            
    2020
    2121    };
  • code/branches/FICN/src/orxonox/orxonox.cc

    r530 r531  
    217217    //TODO: read config file
    218218    //TODO: give config file to Ogre
     219   
    219220    if(argc >=2 && strcmp(argv[1], "server")==0)
    220221    {
     
    224225    {
    225226      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);
    228232  }
    229233
     
    272276    createFrameListener();
    273277    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    }
    274306    startRenderLoop();
    275307  }
  • code/branches/FICN/src/orxonox/orxonox.h

    r515 r531  
    4242      void clientInit(std::string path);
    4343      void standalone(std::string path);
     44      void playableServer(std::string path);
    4445      void defineResources();
    4546      void setupRenderSystem();
  • code/branches/FICN/src/orxonox/spaceship_steering.cc

    r515 r531  
    3535maxSpeedLoopRightLeft) {
    3636       
    37         std::cout << "Steering was loaded";
     37        std::cout << "Steering was loaded" << std::endl;
    3838  moveForward_ = 0;
    3939  rotateUp_ = 0;
Note: See TracChangeset for help on using the changeset viewer.