#include "rSDL.h"
#include "uInput.h"
#include "tList.h"
#include "tString.h"
#include "eCamera.h"
#include "eNetGameObject.h"
#include "tCallbackString.h"
#include "nSpamProtection.h"
#include <set>
Go to the source code of this file.
Classes | |
class | eCockpitPrototype |
class | ePlayer |
class | eAccessLevelHolder |
class managing access levels. More... | |
class | ePlayerNetID |
class | eCallbackGreeting |
Defines | |
#define | MAX_INSTANT_CHAT 26 |
#define | MAX_PLAYERS 4 |
#define | PLAYER_CONFITEMS (30+MAX_INSTANT_CHAT) |
Functions | |
void | se_ChatState (ePlayerNetID::ChatFlags flag, bool cs) |
void | se_SaveToScoreFile (tOutput const &out) |
writes something to scorelog.txt | |
void | se_SaveToLadderLog (tOutput const &out) |
writes something to ladderlog.txt | |
tColoredString & | operator<< (tColoredString &s, const ePlayer &p) |
tColoredString & | operator<< (tColoredString &s, const ePlayerNetID &p) |
void | se_AutoShowScores () |
void | se_UserShowScores (bool show) |
void | se_SetShowScoresAuto (bool a) |
void | se_DeletePasswords () |
tOutput & | operator<< (tOutput &o, const ePlayerNetID &p) |
Variables | |
tList< ePlayerNetID > | se_PlayerNetIDs |
int | sr_viewportBelongsToPlayer [MAX_VIEWPORTS] |
bool | se_assignTeamAutomatically |
int | pingCharity |
int | se_PasswordStorageMode |
int | se_SpamMaxLen |
#define MAX_INSTANT_CHAT 26 |
Definition at line 32 of file ePlayer.h.
Referenced by ePlayer::ePlayer(), ePlayer::Init(), and sg_PlayerMenu().
#define MAX_PLAYERS 4 |
Definition at line 35 of file ePlayer.h.
Referenced by ConnectToServerCore(), gMenuItemPlayer::Enter(), ePlayer::ePlayer(), gGame::GameLoop(), ingame_menu_cleanup(), ePlayer::Init(), ArmageTronPlayer_to_viewport_menuitem::LeftRight(), ePlayer::LogIn(), MainMenu(), PasswordCallback(), ArmageTronPlayer_to_viewport_menuitem::RenderBackground(), ePlayer::SendAuthNames(), sg_PlayerMenu(), ePlayerNetID::SpectateAll(), gGame::StateUpdate(), gTeam::TeamMenu(), and ePlayerNetID::Update().
#define PLAYER_CONFITEMS (30+MAX_INSTANT_CHAT) |
tOutput& operator<< | ( | tOutput & | o, | |
const ePlayerNetID & | p | |||
) |
Definition at line 5948 of file ePlayer.cpp.
05951 { 05952 tColoredString x; 05953 x << p; 05954 o << x;
tColoredString& operator<< | ( | tColoredString & | s, | |
const ePlayerNetID & | p | |||
) |
Definition at line 68 of file ePlayer.cpp.
References ePlayerNetID::GetColoredName().
00068 { 00069 return s << p.GetColoredName(); 00070 }
tColoredString& operator<< | ( | tColoredString & | s, | |
const ePlayer & | p | |||
) |
Definition at line 61 of file ePlayer.cpp.
References tColoredString::ColorString(), ePlayer::Name(), and ePlayer::rgb.
00061 { 00062 return s << tColoredString::ColorString(p.rgb[0]/15.0, 00063 p.rgb[1]/15.0, 00064 p.rgb[2]/15.0) 00065 << p.Name(); 00066 }
void se_AutoShowScores | ( | ) |
Definition at line 5896 of file ePlayer.cpp.
References ass, and show_scores.
05898 { 05899 if (ass)
void se_ChatState | ( | ePlayerNetID::ChatFlags | flag, | |
bool | cs | |||
) |
Definition at line 3462 of file ePlayer.cpp.
References GrowingArrayBase::Len(), nNetObject::Owner(), ePlayerNetID::pID, ePlayerNetID::SetChatting(), and sn_myNetID.
Referenced by Activate(), do_chat(), do_con(), ingame_menu_cleanup(), sg_VoteMenuIdle(), and gGame::StateUpdate().
03464 { 03465 for(int i=se_PlayerNetIDs.Len()-1;i>=0;i--) 03466 { 03467 ePlayerNetID *p = se_PlayerNetIDs[i]; 03468 if (p->Owner()==sn_myNetID && p->pID >= 0){ 03469 p->SetChatting( flag, cs ); 03470 }
void se_DeletePasswords | ( | ) |
Definition at line 263 of file ePlayer.cpp.
References tConsole::Message(), tArray< T, MALLOC >::SetLen(), and st_SaveConfig().
00263 { 00264 S_passwords.SetLen(0); 00265 00266 st_SaveConfig(); 00267 00268 /* 00269 00270 REAL timeout = tSysTimeFloat() + 3; 00271 00272 while(tSysTimeFloat() < timeout){ 00273 00274 sr_ResetRenderState(true); 00275 rViewport::s_viewportFullscreen.Select(); 00276 00277 sr_ClearGL(); 00278 00279 uMenu::GenericBackground(); 00280 00281 REAL w=16*3/640.0; 00282 REAL h=32*3/480.0; 00283 00284 00285 //REAL middle=-.6; 00286 00287 Color(1,1,1); 00288 DisplayText(0,.8,w,h,tOutput("$network_opts_deletepw_complete")); 00289 00290 sr_SwapGL(); 00291 } 00292 00293 */ 00294 00295 tConsole::Message("$network_opts_deletepw_complete", tOutput(), 5); 00296 }
void se_SaveToLadderLog | ( | tOutput const & | out | ) |
writes something to ladderlog.txt
Definition at line 4920 of file ePlayer.cpp.
Referenced by gGame::Analysis(), gGame::GameLoop(), gCycle::KillAt(), ePlayerNetID::LogScoreDifference(), own_game(), gCycle::PassEdge(), and gGame::StateUpdate().
04923 { 04924 if (se_consoleLadderLog) 04925 { 04926 std::cout << "[L] " << out; 04927 std::cout.flush(); 04928 } 04929 if (sn_GetNetState()!=nCLIENT && !tRecorder::IsPlayingBack()) 04930 { 04931 std::ofstream o; 04932 if ( tDirectories::Var().Open(o, "ladderlog.txt", std::ios::app) ) 04933 o << out;
void se_SaveToScoreFile | ( | tOutput const & | out | ) |
writes something to scorelog.txt
Definition at line 4935 of file ePlayer.cpp.
Referenced by eTeam::AddScore(), ePlayerNetID::AddScore(), gGame::Analysis(), and gGame::StateUpdate().
04937 { 04938 tString s(o); 04939 04940 #ifdef DEBUG 04941 if (sn_GetNetState()!=nCLIENT){ 04942 #else 04943 if (sn_GetNetState()==nSERVER && !tRecorder::IsPlayingBack()){ 04944 #endif 04945 04946 std::ofstream o; 04947 if ( tDirectories::Var().Open(o, "scorelog.txt", std::ios::app) ) 04948 o << tColoredString::RemoveColors(s); 04949 } 04950 #ifdef DEBUG 04951 }
void se_SetShowScoresAuto | ( | bool | a | ) |
Definition at line 5906 of file ePlayer.cpp.
Referenced by do_chat(), and do_con().
void se_UserShowScores | ( | bool | show | ) |
Definition at line 5902 of file ePlayer.cpp.
References show_scores.
Referenced by gGame::StateUpdate().
int pingCharity |
Definition at line 102 of file ePlayer.cpp.
Referenced by ePlayerNetID::ReceiveControlNet(), se_ChatTeamLeave(), ePlayerNetID::SetDefaultTeam(), ePlayerNetID::SetTeamWish(), and ePlayerNetID::Update().
Definition at line 423 of file ePlayer.cpp.
Definition at line 99 of file ePlayer.cpp.
Referenced by gGame::Analysis(), BestIQ(), CompareBufferToPlayerNames(), do_chat(), eVoteItem::Evaluate(), exit_game_objects(), gAIPlayer::gAIPlayer(), GameLoop(), gGame::GameLoop(), gServerInfoAdmin::GetUsers(), eVoter::GetVoter(), init_game_objects(), eVoter::KickMenu(), ePlayerNetID::LogScoreDifferences(), main(), eVoter::Name(), PrepareTeamText(), ePlayerNetID::Ranking(), ePlayerNetID::RemoveChatbots(), ePlayerNetID::RequestScheduledLogins(), ePlayerNetID::ResetScoreDifferences(), se_ChatMsg(), se_ChatTeam(), se_GetAccessLevel(), se_GetAlivePlayerFromUserID(), se_IsNameTaken(), se_ListPlayers(), se_SetWatchedObject(), zSelectorAnotherNotTeammateDead::select(), zSelectorAllDead::select(), zSelectorAnyDead::select(), zSelectorAnother::select(), zSelectorAllButSelf::select(), zSelectorAll::select(), gAIPlayer::SetNumberOfAIs(), cCockpit::SetPlayer(), sg_FullscreenMessage(), sg_NumHumans(), ePlayerNetID::SortByScore(), stc_updateFastest(), ePlayerNetID::SwapPlayersNo(), ePlayerNetID::Update(), ePlayerNetID::WaitToLeaveChat(), and eTeam::~eTeam().
int se_SpamMaxLen |
Definition at line 35 of file nSpamProtection.cpp.
Referenced by se_AppendChat(), and sg_PlayerMenu().
int sr_viewportBelongsToPlayer[MAX_VIEWPORTS] |
Definition at line 109 of file rViewport.cpp.
Referenced by display_cockpit_lucifer(), RenderAllViewports(), se_DisplayChatLocallyClient(), and rViewport::Update().