Dragonfly 4.19
A text-based game engine
Public Member Functions | Private Attributes | List of all members
df::EventStep Class Reference
Inheritance diagram for df::EventStep:
Inheritance graph

Public Member Functions

 EventStep ()
 
 EventStep (int init_step_count)
 
void setStepCount (int new_step_count)
 
int getStepCount () const
 
- Public Member Functions inherited from df::Event
 Event ()
 
virtual ~Event ()
 
void setType (std::string new_type)
 
std::string getType () const
 

Private Attributes

int m_step_count
 

Constructor & Destructor Documentation

◆ EventStep() [1/2]

df::EventStep::EventStep ( )

Iteration number of game loop.

Default constructor.

◆ EventStep() [2/2]

df::EventStep::EventStep ( int  init_step_count)

Constructor with initial step count.

Member Function Documentation

◆ getStepCount()

int df::EventStep::getStepCount ( ) const

Get step count.

◆ setStepCount()

void df::EventStep::setStepCount ( int  new_step_count)

Set step count.