Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 9505 in orxonox.OLD for branches/proxy/src


Ignore:
Timestamp:
Jul 27, 2006, 1:00:55 PM (18 years ago)
Author:
patrick
Message:

changing the team color now works and a little cleanup

Location:
branches/proxy/src/lib/network
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/proxy/src/lib/network/player_stats.cc

    r9504 r9505  
    188188  {
    189189    State::getPlayer()->setPlayable( this->playable );
     190    // also set the team id
     191    this->playable->setTeam(this->getTeamId());
    190192  }
    191193
  • branches/proxy/src/lib/network/player_stats.h

    r9504 r9505  
    7474    static ScoreList getScoreList();
    7575
     76
    7677  private:
    77     int userId;                //!< userId
    78     int teamId;                //!< teamId
    79     int preferedTeamId;        //!< preferedTeamId
     78    void init();
    8079
    81     std::string nickName;      //!< players nickname
    82     std::string oldNickName;   //!< nickname player had before
    8380
    84     int score;                 //!< users score points
    85     int playableClassId;       //!< players playable class id
    86     int playableUniqueId;      //!< playable's uniqueId
    87     std::string modelFileName; //!< model filename
     81  private:
     82    // handles for SynchronizeableVars
     83    int              userId_handle;
     84    int              teamId_handle;
     85    int              preferedTeamId_handle;
     86    int              score_handle;
     87    int              playableClassId_handle;
     88    int              playableUniqueId_handle;
     89    int              modelFileName_handle;
     90    int              nickName_handler;
    8891
    89     Playable * playable;       //!< pointer to players playable
     92    int              userId;                    //!< userId
     93    int              teamId;                    //!< teamId
     94    int              preferedTeamId;            //!< preferedTeamId
    9095
    91     // handles for SynchronizeableVars
    92     int userId_handle;
    93     int teamId_handle;
    94     int preferedTeamId_handle;
    95     int score_handle;
    96     int playableClassId_handle;
    97     int playableUniqueId_handle;
    98     int modelFileName_handle;
    99     int nickName_handler;
     96    std::string      nickName;                  //!< players nickname
     97    std::string      oldNickName;               //!< nickname player had before
    10098
    101     void init();
     99    int              score;                     //!< users score points
     100    int              playableClassId;           //!< players playable class id
     101    int              playableUniqueId;          //!< playable's uniqueId
     102    std::string      modelFileName;             //!< model filename
     103
     104    Playable *       playable;                  //!< pointer to players playable
    102105};
    103106
Note: See TracChangeset for help on using the changeset viewer.