Starshatter_Open
Open source Starshatter engine
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
NetUser Class Reference

#include <NetUser.h>

List of all members.

Public Member Functions

 NetUser (const char *name)
 NetUser (const Player *player)
virtual ~NetUser ()
int operator== (const NetUser &u) const
const TextName () const
const TextPass () const
const NetAddrGetAddress () const
Color GetColor () const
const TextGetSessionID () const
DWORD GetNetID () const
bool IsHost () const
int AuthLevel () const
int AuthState () const
const char * Salt () const
bool IsAuthOK () const
const TextSquadron () const
const TextSignature () const
int Rank () const
int FlightTime () const
int Missions () const
int Kills () const
int Losses () const
void SetName (const char *n)
void SetPass (const char *p)
void SetAddress (const NetAddr &a)
void SetColor (Color c)
void SetNetID (DWORD id)
void SetSessionID (Text s)
void SetHost (bool h)
void SetAuthLevel (int n)
void SetAuthState (int n)
void SetSalt (const char *s)
void SetSquadron (const char *s)
void SetSignature (const char *s)
void SetRank (int n)
void SetFlightTime (int n)
void SetMissions (int n)
void SetKills (int n)
void SetLosses (int n)
Text GetDescription ()

Static Public Member Functions

static const char * TYPENAME ()

Protected Attributes

Text name
Text pass
Text session_id
NetAddr addr
DWORD netid
Color color
bool host
int auth_state
int auth_level
char salt [33]
Text squadron
Text signature
int rank
int flight_time
int missions
int kills
int losses

Detailed Description

Definition at line 30 of file NetUser.h.


Constructor & Destructor Documentation

NetUser::NetUser ( const char *  name)

Definition at line 44 of file NetUser.cpp.

NetUser::NetUser ( const Player player)

Definition at line 58 of file NetUser.cpp.

NetUser::~NetUser ( )
virtual

Definition at line 84 of file NetUser.cpp.


Member Function Documentation

int NetUser::AuthLevel ( ) const
inline

Definition at line 49 of file NetUser.h.

int NetUser::AuthState ( ) const
inline

Definition at line 50 of file NetUser.h.

int NetUser::FlightTime ( ) const
inline

Definition at line 57 of file NetUser.h.

const NetAddr& NetUser::GetAddress ( ) const
inline

Definition at line 43 of file NetUser.h.

Color NetUser::GetColor ( ) const
inline

Definition at line 44 of file NetUser.h.

Text NetUser::GetDescription ( )

Definition at line 90 of file NetUser.cpp.

DWORD NetUser::GetNetID ( ) const
inline

Definition at line 46 of file NetUser.h.

const Text& NetUser::GetSessionID ( ) const
inline

Definition at line 45 of file NetUser.h.

bool NetUser::IsAuthOK ( ) const

Definition at line 114 of file NetUser.cpp.

bool NetUser::IsHost ( ) const
inline

Definition at line 47 of file NetUser.h.

int NetUser::Kills ( ) const
inline

Definition at line 59 of file NetUser.h.

int NetUser::Losses ( ) const
inline

Definition at line 60 of file NetUser.h.

int NetUser::Missions ( ) const
inline

Definition at line 58 of file NetUser.h.

const Text& NetUser::Name ( ) const
inline

Definition at line 41 of file NetUser.h.

int NetUser::operator== ( const NetUser u) const
inline

Definition at line 39 of file NetUser.h.

const Text& NetUser::Pass ( ) const
inline

Definition at line 42 of file NetUser.h.

int NetUser::Rank ( ) const
inline

Definition at line 56 of file NetUser.h.

const char* NetUser::Salt ( ) const
inline

Definition at line 51 of file NetUser.h.

void NetUser::SetAddress ( const NetAddr a)
inline

Definition at line 64 of file NetUser.h.

void NetUser::SetAuthLevel ( int  n)
inline

Definition at line 72 of file NetUser.h.

void NetUser::SetAuthState ( int  n)
inline

Definition at line 73 of file NetUser.h.

void NetUser::SetColor ( Color  c)
inline

Definition at line 67 of file NetUser.h.

void NetUser::SetFlightTime ( int  n)
inline

Definition at line 79 of file NetUser.h.

void NetUser::SetHost ( bool  h)
inline

Definition at line 70 of file NetUser.h.

void NetUser::SetKills ( int  n)
inline

Definition at line 81 of file NetUser.h.

void NetUser::SetLosses ( int  n)
inline

Definition at line 82 of file NetUser.h.

void NetUser::SetMissions ( int  n)
inline

Definition at line 80 of file NetUser.h.

void NetUser::SetName ( const char *  n)
inline

Definition at line 62 of file NetUser.h.

void NetUser::SetNetID ( DWORD  id)
inline

Definition at line 68 of file NetUser.h.

void NetUser::SetPass ( const char *  p)
inline

Definition at line 63 of file NetUser.h.

void NetUser::SetRank ( int  n)
inline

Definition at line 78 of file NetUser.h.

void NetUser::SetSalt ( const char *  s)
inline

Definition at line 74 of file NetUser.h.

void NetUser::SetSessionID ( Text  s)
inline

Definition at line 69 of file NetUser.h.

void NetUser::SetSignature ( const char *  s)
inline

Definition at line 77 of file NetUser.h.

void NetUser::SetSquadron ( const char *  s)
inline

Definition at line 76 of file NetUser.h.

const Text& NetUser::Signature ( ) const
inline

Definition at line 55 of file NetUser.h.

const Text& NetUser::Squadron ( ) const
inline

Definition at line 54 of file NetUser.h.

static const char* NetUser::TYPENAME ( )
inlinestatic

Definition at line 33 of file NetUser.h.


Member Data Documentation

NetAddr NetUser::addr
protected

Definition at line 90 of file NetUser.h.

int NetUser::auth_level
protected

Definition at line 97 of file NetUser.h.

int NetUser::auth_state
protected

Definition at line 96 of file NetUser.h.

Color NetUser::color
protected

Definition at line 92 of file NetUser.h.

int NetUser::flight_time
protected

Definition at line 104 of file NetUser.h.

bool NetUser::host
protected

Definition at line 93 of file NetUser.h.

int NetUser::kills
protected

Definition at line 106 of file NetUser.h.

int NetUser::losses
protected

Definition at line 107 of file NetUser.h.

int NetUser::missions
protected

Definition at line 105 of file NetUser.h.

Text NetUser::name
protected

Definition at line 87 of file NetUser.h.

DWORD NetUser::netid
protected

Definition at line 91 of file NetUser.h.

Text NetUser::pass
protected

Definition at line 88 of file NetUser.h.

int NetUser::rank
protected

Definition at line 103 of file NetUser.h.

char NetUser::salt[33]
protected

Definition at line 98 of file NetUser.h.

Text NetUser::session_id
protected

Definition at line 89 of file NetUser.h.

Text NetUser::signature
protected

Definition at line 102 of file NetUser.h.

Text NetUser::squadron
protected

Definition at line 101 of file NetUser.h.


The documentation for this class was generated from the following files: