![]() |
Dragonfly 4.22
A text-based game engine
|

Public Member Functions | |
| EventView () | |
| EventView (std::string new_tag, int new_value, bool new_delta) | |
| void | setTag (std::string new_tag) |
| std::string | getTag () const |
| void | setValue (int new_value) |
| int | getValue () const |
| void | setDelta (bool new_delta) |
| bool | getDelta () const |
Public Member Functions inherited from df::Event | |
| Event () | |
| virtual | ~Event () |
| void | setType (std::string new_type) |
| std::string | getType () const |
Private Attributes | |
| std::string | m_tag |
| int | m_value |
| bool | m_delta |
| df::EventView::EventView | ( | ) |
Create view event with tag VIEW_EVENT, value 0 and delta false.
| df::EventView::EventView | ( | std::string | new_tag, |
| int | new_value, | ||
| bool | new_delta | ||
| ) |
Create view event with tag, value and delta as indicated.
| bool df::EventView::getDelta | ( | ) | const |
Get delta.
| std::string df::EventView::getTag | ( | ) | const |
Get tag.
| int df::EventView::getValue | ( | ) | const |
Get value.
| void df::EventView::setDelta | ( | bool | new_delta | ) |
Set delta to new delta.
| void df::EventView::setTag | ( | std::string | new_tag | ) |
Set tag to new tag.
| void df::EventView::setValue | ( | int | new_value | ) |
Set value to new value.
|
private |
True if change in value, else replace value.
|
private |
Tag to associate.
|
private |
Value for view.