Phasor  01.00.10.059
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Classes | Namespaces | Functions | Variables
Server.cpp File Reference
#include "Server.h"
#include "../../../Common/MyString.h"
#include "../../Logging.h"
#include "ScriptLoader.h"
#include "MapLoader.h"
#include "../../Commands.h"
#include "../Game/Game.h"
#include "../../Globals.h"
#include "../../Admin.h"
#include "../../../ScriptingEvents.h"
#include "Mapvote.h"
#include "Packet.h"
#include "Chat.h"
#include "../../../Main.h"

Classes

struct  halo::server::s_hash_data
 
struct  halo::server::s_hash_list
 
struct  halo::server::s_command_cache
 

Namespaces

namespace  halo
 
namespace  halo::server
 

Functions

s_server_info * halo::server::GetServerStruct ()
 Get the server struct.
 
PhasorMachine * halo::server::FindMachineById (DWORD machineNum)
 
PhasorMachine * halo::server::FindMachineByIndex (DWORD index)
 
PhasorMachine * halo::server::FindMachine (const s_player &player)
 
void __stdcall halo::server::OnMachineConnect (DWORD machineIndex)
 
void __stdcall halo::server::OnMachineDisconnect (DWORD machineIndex)
 
void __stdcall halo::server::OnMachineInfoFix (s_machinfo_info_partial_packet *data)
 
void __stdcall halo::server::ConsoleHandler (DWORD fdwCtrlType)
 Called for Windows related console events (ie closing the server)
 
void __stdcall halo::server::OnConsoleProcessing ()
 Called every cycle to read input from the user. I use it for timers.
 
void __stdcall halo::server::OnClientUpdate (s_player_structure *m_player)
 Called when a client sends its update packet (new pos, fire etc)
 
bool __stdcall halo::server::OnMapLoad (maploader::s_mapcycle_entry *loading_map)
 Called when a map is being loaded.
 
void __stdcall halo::server::OnNewGame (const char *map)
 Called when a new game starts.
 
void __stdcall halo::server::OnGameEnd (DWORD mode)
 Called when a game stage ends.
 
void __stdcall halo::server::OnHaloPrint (char *msg)
 Called when halo wants to print a message to the console.
 
bool __stdcall halo::server::OnHaloBanCheck (char *hash, s_machine_info *machine)
 Called when halo checks if the specified hash is banned.
 
void halo::server::acceptInvalidHashes (bool state)
 
bool halo::server::getInvalidHashState ()
 
void __stdcall halo::server::OnHashValidation (s_hash_validation *info, const char *status)
 
void __stdcall halo::server::ProcessCommandAttempt (s_command_input *input, int playerNum)
 
e_command_result __stdcall halo::server::ProcessCommand (char *command)
 Called to process a server command, after the password has been validated.
 
void halo::server::MessagePlayer (const s_player &player, const std::wstring &str)
 Send a chat message to the player.
 
bool halo::server::ConsoleMessagePlayer (const s_player &player, const std::wstring &str)
 Send a console message to the player.
 
void halo::server::NotifyServerOfTeamChange (const halo::s_player &player)
 Notifies the server that a player has changed team (syncs it)
 
void halo::server::ExecuteServerCommand (const std::string &command, s_player *execute_as)
 
void halo::server::SetExecutingPlayer (halo::s_player *player)
 
halo::s_playerhalo::server::GetPlayerExecutingCommand ()
 Get the player executing the current command.
 
bool halo::server::GetPlayerHash (const s_player &player, std::string &hash)
 
bool halo::server::GetMachineHash (const s_machine_info &machine, std::string &hash)
 
bool halo::server::GetPlayerIP (const s_player &player, std::string *ip, WORD *port)
 
bool halo::server::GetMachineIP (s_machine_info &machine, std::string *ip, WORD *port)
 
DWORD halo::server::GetRespawnTicks ()
 
DWORD halo::server::GetServerTicks ()
 
e_command_result halo::server::sv_quit (void *, commands::CArgParser &, COutStream &)
 

Variables

SayStream halo::server::say_stream
 Stream used for server messages.
 
SayStreamRaw halo::server::say_stream_raw
 
std::unique_ptr< PhasorMachine > halo::server::machine_list [16]
 
std::string halo::server::current_map
 
bool halo::server::allow_invalid_hash = false