DDraceNetwork Documentation
Loading...
Searching...
No Matches
CProofMode Class Reference

#include <proof_mode.h>

Inheritance diagram for CProofMode:
[legend]
Collaboration diagram for CProofMode:
[legend]

Public Types

enum  EProofBorder { PROOF_BORDER_OFF , PROOF_BORDER_INGAME , PROOF_BORDER_MENU }

Public Member Functions

void OnInit (CEditor *pEditor) override
void OnReset () override
void OnMapLoad () override
void RenderScreenSizes ()
bool IsEnabled () const
bool IsModeMenu () const
bool IsModeIngame () const
void Toggle ()
void SetModeMenu ()
void SetModeIngame ()
void SetMenuBackgroundPositionNames ()
void ResetMenuBackgroundPositions ()
Public Member Functions inherited from CEditorComponent
virtual bool OnInput (const IInput::CEvent &Event)
virtual void OnUpdate ()
virtual void OnRender (CUIRect View)
void InitSubComponents ()
void RegisterSubComponent (CEditorComponent &Component)
Public Member Functions inherited from CEditorObject
virtual ~CEditorObject ()=default
CEditorEditor ()
const CEditorEditor () const
IInputInput ()
const IInputInput () const
IClientClient ()
const IClientClient () const
CConfigConfig ()
const CConfigConfig () const
IEngineEngine ()
const IEngineEngine () const
IGraphicsGraphics ()
const IGraphicsGraphics () const
ISoundSound ()
const ISoundSound () const
ITextRenderTextRender ()
const ITextRenderTextRender () const
IStorageStorage ()
const IStorageStorage () const
CUiUi ()
const CUiUi () const
CRenderMapRenderMap ()
const CRenderMapRenderMap () const

Public Attributes

EProofBorder m_ProofBorders
int m_CurrentMenuProofIndex
std::vector< vec2m_vMenuBackgroundPositions
std::vector< const char * > m_vpMenuBackgroundPositionNames
std::vector< std::vector< int > > m_vMenuBackgroundCollisions

Member Enumeration Documentation

◆ EProofBorder

Enumerator
PROOF_BORDER_OFF 
PROOF_BORDER_INGAME 
PROOF_BORDER_MENU 

Member Function Documentation

◆ IsEnabled()

bool CProofMode::IsEnabled ( ) const

◆ IsModeIngame()

bool CProofMode::IsModeIngame ( ) const

◆ IsModeMenu()

bool CProofMode::IsModeMenu ( ) const

◆ OnInit()

void CProofMode::OnInit ( CEditor * pEditor)
overridevirtual

Initialize the component and interface pointers. Needs to be the first function that is called. The default implementation also resets the component.

Reimplemented from CEditorComponent.

◆ OnMapLoad()

void CProofMode::OnMapLoad ( )
overridevirtual

Reimplemented from CEditorComponent.

◆ OnReset()

void CProofMode::OnReset ( )
overridevirtual

Reimplemented from CEditorComponent.

◆ RenderScreenSizes()

void CProofMode::RenderScreenSizes ( )

◆ ResetMenuBackgroundPositions()

void CProofMode::ResetMenuBackgroundPositions ( )

◆ SetMenuBackgroundPositionNames()

void CProofMode::SetMenuBackgroundPositionNames ( )

◆ SetModeIngame()

void CProofMode::SetModeIngame ( )

◆ SetModeMenu()

void CProofMode::SetModeMenu ( )

◆ Toggle()

void CProofMode::Toggle ( )

Member Data Documentation

◆ m_CurrentMenuProofIndex

int CProofMode::m_CurrentMenuProofIndex

◆ m_ProofBorders

EProofBorder CProofMode::m_ProofBorders

◆ m_vMenuBackgroundCollisions

std::vector<std::vector<int> > CProofMode::m_vMenuBackgroundCollisions

◆ m_vMenuBackgroundPositions

std::vector<vec2> CProofMode::m_vMenuBackgroundPositions

◆ m_vpMenuBackgroundPositionNames

std::vector<const char *> CProofMode::m_vpMenuBackgroundPositionNames

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