Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 8801 in orxonox.OLD for branches/network/src/util


Ignore:
Timestamp:
Jun 26, 2006, 4:30:31 PM (19 years ago)
Author:
rennerc
Message:

finished spawningpoint for spawning playables

Location:
branches/network/src/util
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/network/src/util/game_rules.h

    r8623 r8801  
    3535    /** adding a kill event to the kill list @param kill the kill object containing all infos */
    3636    void registerKill(const Kill& kill);
     37    virtual void registerSpawn( WorldEntity * we ){}
    3738
    3839    virtual void onPlayerSpawn() {}
    3940    virtual void onPlayerDeath() {}
    40 
    4141
    4242    virtual void tick(float dt) = 0;
  • branches/network/src/util/multiplayer_team_deathmatch.cc

    r8798 r8801  
    139139
    140140/**
    141  * called when the player enters the game
    142  * @param player the spawned player
    143  */
    144 void MultiplayerTeamDeathmatch::onPlayerSpawn()
    145 {
    146   this->bLocalPlayerDead = false;
    147 }
    148 
    149 
    150 /**
    151  * when the player is killed
    152  * @param player the killed player
    153  */
    154 void MultiplayerTeamDeathmatch::onPlayerDeath()
    155 {
    156   this->bLocalPlayerDead = true;
    157 }
    158 
    159 
    160 /**
    161141 * time tick
    162142 * @param dt time
     
    786766}
    787767
     768/**
     769 * this function is called on player respawn
     770 * @param we
     771 */
     772void MultiplayerTeamDeathmatch::registerSpawn( WorldEntity * we )
     773{
     774  onRespawn( we->getOwner() );
     775}
     776
  • branches/network/src/util/multiplayer_team_deathmatch.h

    r8782 r8801  
    4141    virtual std::string getPlayableModelFileName( int userId, int team, ClassID classId );
    4242
    43     virtual void onPlayerSpawn();
    44     virtual void onPlayerDeath();
    45 
     43    virtual void registerSpawn( WorldEntity * we );
    4644
    4745    virtual void tick(float dt);
Note: See TracChangeset for help on using the changeset viewer.