~swag/armagetronad/0.2.9-sty+ct+ap-fork

« back to all changes in this revision

Viewing changes to src/engine/ePlayer.h

  • Committer: SwagTron
  • Date: 2019-03-05 07:13:03 UTC
  • Revision ID: swagtron-20190305071303-5m4cn9hs6h8ydsgf
- Ported toggle from 0.4. Seems kind of hacky. Had to add another FindConfigItem of type tConfItemBase due to tab completion using the previous tString function. Plan to change this later, but I really needed the toggle function. Tried to cast the two, but that did not work out. Seemed like the bug-less option for the time being. Those unfamiliar with this function, you can now toggle boolean commands (Ex. toggle text_out)

Show diffs side-by-side

added added

removed removed

Lines of Context:
72
72
// time between public chat requests, set to 0 to disable
73
73
extern REAL se_chatRequestTimeout;
74
74
 
 
75
// List the colors of other players.
 
76
static void se_listPlayerColors();
 
77
 
75
78
// call on commands that only work on the server; quit if it returns true
76
79
bool se_NeedsServer(char const * command, std::istream & s, bool strict = true );
77
80
 
326
329
    virtual bool ActionOnQuit();
327
330
    virtual void ActionOnDelete();
328
331
 
329
 
    // From sty ct branch
330
 
    // Check if a player can be respawned. Relaying on team alone is not enough.
331
 
    // If a player enters as spectator, they are still assumed to be on a team.
332
 
    // When a player is suspeded they are also on a team until the end of the round.
333
 
    bool CanRespawn() const { return currentTeam && suspended_ == 0 && ! spectating_; }
334
 
    
335
332
    // chatting
336
333
    bool IsChatting() const { return chatting_; }
337
334
    void SetChatting ( ChatFlags flag, bool chatting );
443
440
    static void OnlineStatsLadderLog(); //  writes the online players, teams and the numbers
444
441
    static void  ResetScore();  // resets the ranking list
445
442
 
446
 
    // List the colors of other players.
447
 
    static void listPlayerColors(tString s_orig);
448
 
    // List the information of other players.
449
 
    static void listPlayerInfo(tString s_orig);
450
 
    // Fast way to change / display current RGB
451
 
    static void currentPlayerRGB(tString s_orig);
452
 
    //Grab Stuff (Not totally sure if this is faster than copying the code, but looks nicer)
453
 
    static tColoredString gatherPlayerInfo(ePlayerNetID * p);
454
 
    static tColoredString gatherPlayerColor(ePlayerNetID * p);
455
 
 
456
443
    static void DisplayScores(); // display scores on the screen
457
444
 
458
445
    void GreetHighscores(tString &s); // tell him his positions in the