#include <voting.h>
|
| CVoting () |
|
virtual int | Sizeof () const override |
|
virtual void | OnReset () override |
|
virtual void | OnConsoleInit () override |
|
virtual void | OnMessage (int Msgtype, void *pRawMsg) override |
|
void | Render () |
|
void | CallvoteSpectate (int ClientId, const char *pReason, bool ForceVote=false) |
|
void | CallvoteKick (int ClientId, const char *pReason, bool ForceVote=false) |
|
void | CallvoteOption (int OptionId, const char *pReason, bool ForceVote=false) |
|
void | RemovevoteOption (int OptionId) |
|
void | AddvoteOption (const char *pDescription, const char *pCommand) |
|
void | AddOption (const char *pDescription) |
|
void | Vote (int v) |
|
int | SecondsLeft () const |
|
bool | IsVoting () const |
|
int | TakenChoice () const |
|
const char * | VoteDescription () const |
|
const char * | VoteReason () const |
|
bool | IsReceivingOptions () const |
|
virtual | ~CComponent () |
|
virtual int | Sizeof () const =0 |
|
class CGameClient * | GameClient () const |
|
class IClient * | Client () const |
|
virtual void | OnStateChange (int NewState, int OldState) |
|
virtual void | OnConsoleInit () |
|
virtual void | OnInit () |
|
virtual void | OnShutdown () |
|
virtual void | OnReset () |
|
virtual void | OnWindowResize () |
|
virtual void | OnRefreshSkins () |
|
virtual void | OnRender () |
|
virtual void | OnNewSnapshot () |
|
virtual void | OnRelease () |
|
virtual void | OnMapLoad () |
|
virtual void | OnMessage (int Msg, void *pRawMsg) |
|
virtual bool | OnCursorMove (float x, float y, IInput::ECursorType CursorType) |
|
virtual bool | OnInput (const IInput::CEvent &Event) |
|
◆ CVoting()
◆ AddOption()
void CVoting::AddOption |
( |
const char * |
pDescription | ) |
|
◆ AddvoteOption()
void CVoting::AddvoteOption |
( |
const char * |
pDescription, |
|
|
const char * |
pCommand |
|
) |
| |
◆ Callvote()
void CVoting::Callvote |
( |
const char * |
pType, |
|
|
const char * |
pValue, |
|
|
const char * |
pReason |
|
) |
| |
|
private |
◆ CallvoteKick()
void CVoting::CallvoteKick |
( |
int |
ClientId, |
|
|
const char * |
pReason, |
|
|
bool |
ForceVote = false |
|
) |
| |
◆ CallvoteOption()
void CVoting::CallvoteOption |
( |
int |
OptionId, |
|
|
const char * |
pReason, |
|
|
bool |
ForceVote = false |
|
) |
| |
◆ CallvoteSpectate()
void CVoting::CallvoteSpectate |
( |
int |
ClientId, |
|
|
const char * |
pReason, |
|
|
bool |
ForceVote = false |
|
) |
| |
◆ ClearOptions()
void CVoting::ClearOptions |
( |
| ) |
|
|
private |
◆ ConCallvote()
◆ ConVote()
◆ IsReceivingOptions()
bool CVoting::IsReceivingOptions |
( |
| ) |
const |
|
inline |
◆ IsVoting()
bool CVoting::IsVoting |
( |
| ) |
const |
|
inline |
◆ OnConsoleInit()
void CVoting::OnConsoleInit |
( |
| ) |
|
|
overridevirtual |
Called to let the components register their console commands.
Reimplemented from CComponent.
◆ OnMessage()
void CVoting::OnMessage |
( |
int |
Msg, |
|
|
void * |
pRawMsg |
|
) |
| |
|
overridevirtual |
◆ OnReset()
void CVoting::OnReset |
( |
| ) |
|
|
overridevirtual |
Called to reset the component. This method is usually called on your component constructor to avoid code duplication.
- See also
- CHud::CHud()
-
CHud::OnReset()
Reimplemented from CComponent.
◆ RemoveOption()
void CVoting::RemoveOption |
( |
const char * |
pDescription | ) |
|
|
private |
◆ RemovevoteOption()
void CVoting::RemovevoteOption |
( |
int |
OptionId | ) |
|
◆ Render()
◆ RenderBars()
void CVoting::RenderBars |
( |
CUIRect |
Bars | ) |
const |
|
private |
◆ SecondsLeft()
int CVoting::SecondsLeft |
( |
| ) |
const |
◆ Sizeof()
virtual int CVoting::Sizeof |
( |
| ) |
const |
|
inlineoverridevirtual |
Gets the size of the non-abstract component.
Implements CComponent.
◆ TakenChoice()
int CVoting::TakenChoice |
( |
| ) |
const |
|
inline |
◆ Vote()
void CVoting::Vote |
( |
int |
v | ) |
|
◆ VoteDescription()
const char * CVoting::VoteDescription |
( |
| ) |
const |
|
inline |
◆ VoteReason()
const char * CVoting::VoteReason |
( |
| ) |
const |
|
inline |
◆ m_aDescription
◆ m_aReason
◆ m_Closetime
int64_t CVoting::m_Closetime |
|
private |
◆ m_Heap
◆ m_No
◆ m_NumVoteOptions
int CVoting::m_NumVoteOptions |
◆ m_Opentime
int64_t CVoting::m_Opentime |
|
private |
◆ m_Pass
◆ m_pFirst
◆ m_pLast
◆ m_pRecycleFirst
◆ m_pRecycleLast
◆ m_ReceivingOptions
bool CVoting::m_ReceivingOptions |
|
private |
◆ m_Total
◆ m_Voted
◆ m_Yes
The documentation for this class was generated from the following files: