Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Oct 24, 2008, 2:48:43 AM (16 years ago)
Author:
landauf
Message:

many changes, can't remember everything, but these are the most important:

  • attaching entities to other entities works
  • displaying models, lights and shadows works
  • controlling a spectator works
  • removed an update hack in PositionableEntity because I've found a much better solution

and with "works" I mean: it works on client, server and standalone

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/objecthierarchy/src/orxonox/objects/gametypes/Gametype.h

    r1989 r2006  
    3636#include "core/BaseObject.h"
    3737#include "core/Identifier.h"
    38 #include "network/ClientConnectionListener.h"
    3938#include "objects/worldentities/ControllableEntity.h"
    4039
    4140namespace orxonox
    4241{
    43     class _OrxonoxExport Gametype : public BaseObject, public network::ClientConnectionListener
     42    class _OrxonoxExport Gametype : public BaseObject
    4443    {
    4544        friend class PlayerInfo;
     
    4948            virtual ~Gametype() {}
    5049
    51             static Gametype* getCurrentGametype();
    52             static void listPlayers();
    53 
    54             inline const std::map<unsigned int, PlayerInfo*>& getClients() const
    55                 { return this->clients_; }
    5650            inline const std::set<PlayerInfo*>& getPlayers() const
    5751                { return this->players_; }
    58             static PlayerInfo* getClient(unsigned int clientID);
    5952
    6053        protected:
    61             virtual void clientConnected(unsigned int clientID);
    62             virtual void clientDisconnected(unsigned int clientID);
    63 
    6454            virtual void playerJoined(PlayerInfo* player);
    6555            virtual void playerLeft(PlayerInfo* player);
     
    7262
    7363            std::set<PlayerInfo*> players_;
    74             std::map<unsigned int, PlayerInfo*> clients_;
    7564            SubclassIdentifier<ControllableEntity> defaultPawn_;
    7665    };
Note: See TracChangeset for help on using the changeset viewer.