~armagetronad-sty-0.3/armagetronad/armagetronad-v2sty

« back to all changes in this revision

Viewing changes to src/engine/eTeam.h

  • Committer: Kyle
  • Date: 2009-09-21 23:12:43 UTC
  • mfrom: (861.4.46)
  • Revision ID: racingmasterweb@gmail.com-20090921231243-nogk5sl8tpdx13ox
merging with mainline r936

Show diffs side-by-side

added added

removed removed

Lines of Context:
85
85
 
86
86
    void SetLocked( bool locked );  // sets the lock status (whether invitations are required)
87
87
    bool IsLocked() const;          // returns the lock status
 
88
    bool IsLockedFor( const ePlayerNetID * p ) const;   // returns if a team is locked to join by a certain player (due to ACCESS_LEVEL_PLAY)
88
89
 
89
90
    void Invite( ePlayerNetID * player );                // invite the player to join
90
91
    void UnInvite( ePlayerNetID * player );              // revoke an invitation
94
95
    static bool Enemies( eTeam const * team1, eTeam const * team2 ); //!< determines whether two teams are enemies
95
96
 
96
97
    static void Enforce( int minTeams, int maxTeams, int maxImbalance );
 
98
    
 
99
    static void WritePlayers( eLadderLogWriter & writer, const eTeam *team );
97
100
public:                                                                                         // public methods
98
101
    static void EnforceConstraints();                                   // make sure the limits on team number and such are met
99
102