Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Oct 21, 2008, 4:56:41 PM (16 years ago)
Author:
landauf
Message:
  • added ControllableEntity, the baseclass of all players, vehicles and ships.
  • moved Template to core
  • some changes in Camera
  • added 6 constants to WorldEntity to identify relative directions
  • changed vom Radian to Degree as default angle unit
Location:
code/branches/objecthierarchy/src/network
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/branches/objecthierarchy/src/network/Synchronisable.cc

    r1945 r1989  
    8181      for(std::list<synchronisableVariable *>::iterator it = syncList->begin(); it!=syncList->end(); it++)
    8282        delete (*it)->callback;
    83       deletedObjects_.push(objectID);
     83      if (this->objectMode_ != 0x0)
     84        deletedObjects_.push(objectID);
    8485//       COUT(3) << "destruct synchronisable +++" << objectID << " | " << classID << std::endl;
    8586//       COUT(3) << " bump ---" << objectID << " | " << &objectMap_ << std::endl;
     
    418419   */
    419420  void Synchronisable::setObjectMode(int mode){
    420     assert(mode==0x1 || mode==0x2 || mode==0x3);
     421    assert(mode==0x0 || mode==0x1 || mode==0x2 || mode==0x3);
    421422    objectMode_=mode;
    422423  }
  • code/branches/objecthierarchy/src/network/Synchronisable.h

    r1945 r1989  
    4848namespace network
    4949{
     50  static const unsigned int OBJECTID_UNKNOWN = (unsigned int)-1;
     51
    5052  namespace direction{
    5153    enum syncdirection{
Note: See TracChangeset for help on using the changeset viewer.