Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 9008 in orxonox.OLD for trunk/src/world_entities/world_entity.cc


Ignore:
Timestamp:
Jul 2, 2006, 2:22:19 PM (18 years ago)
Author:
bensch
Message:

orxonox/trunk: merged the network bak to the trunk
merged with command:
svn merge -r8804:HEAD https://svn.orxonox.net/orxonox/branches/multi_player_map .

conflicts all resolved in favour of the branche

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/world_entities/world_entity.cc

    r9003 r9008  
    8888  modelFileName_handle = registerVarId( new SynchronizeableString( &modelFileName, &modelFileName, "modelFileName" ) );
    8989  scaling_handle = registerVarId( new SynchronizeableFloat( &scaling, &scaling, "scaling" ) );
     90  list_handle = registerVarId( new SynchronizeableInt( (int*)&objectListNumber, &list_write, "list" ) );
    9091}
    9192
     
    733734 *  @param damage damage to be dealt
    734735 */
    735 void WorldEntity::hit(float damage)
     736void WorldEntity::hit(float damage, WorldEntity* killer)
    736737{
    737738  this->decreaseHealth(damage);
     
    748749
    749750    if( State::getGameRules() != NULL)
    750       State::getGameRules()->registerKill(Kill(NULL, this));
     751      State::getGameRules()->registerKill(Kill(killer, this));
    751752  }
    752753}
     
    832833  }
    833834
     835  if ( std::find( id.begin(), id.end(), list_handle ) != id.end() )
     836  {
     837    this->toList( (OM_LIST)list_write );
     838  }
     839
    834840  PNode::varChangeHandler( id );
    835841}
Note: See TracChangeset for help on using the changeset viewer.