Symphony Of Empires
Event Struct Reference

#include <event.hpp>

Inheritance diagram for Event:
Collaboration diagram for Event:

Public Member Functions

void take_decision (Nation &sender, Decision &dec)
 
- Public Member Functions inherited from Entity< T >
constexpr Entity () noexcept=default
 
constexpr Entity (Entity &&) noexcept=default
 
constexpr Entity (const Entity &) noexcept=default
 
constexpr Entityoperator= (const Entity &) noexcept=default
 
constexpr ~Entity () noexcept=default
 
constexpr bool is_invalid () const
 Checks if the current id is invalid. More...
 
constexpr bool is_valid () const
 Checks if the current id is valid. More...
 
constexpr operator Id () const noexcept
 
constexpr operator size_t () const noexcept
 
constexpr Id get_id () const
 

Public Attributes

Eng3D::StringRef name
 
std::vector< NationIdreceiver_ids
 
std::vector< Decisiondecisions
 
Eng3D::StringRef text
 
Eng3D::StringRef title
 
Eng3D::StringRef extra_data
 
bool checked = false
 
int conditions_function = 0
 
int do_event_function = 0
 
- Public Attributes inherited from RefnameEntity< EventId >
Eng3D::StringRef ref_name
 
- Public Attributes inherited from Entity< T >
Id cached_id
 Id used to speed up Id lookups on any context. More...
 

Additional Inherited Members

- Public Types inherited from Entity< T >
using Id = T
 
- Static Public Member Functions inherited from Entity< T >
constexpr static Id invalid ()
 Returns an invalid id. More...
 
constexpr static bool is_invalid (Id id)
 Checks if the id is not valid. More...
 
constexpr static bool is_valid (Id id)
 Checks if the id is valid. More...
 

Detailed Description

Definition at line 54 of file event.hpp.

Member Function Documentation

◆ take_decision()

void Event::take_decision ( Nation sender,
Decision dec 
)

Definition at line 35 of file event.cpp.

Member Data Documentation

◆ checked

bool Event::checked = false

Definition at line 62 of file event.hpp.

◆ conditions_function

int Event::conditions_function = 0
Todo:
Reload these when serializing

Definition at line 64 of file event.hpp.

◆ decisions

std::vector<Decision> Event::decisions

Definition at line 58 of file event.hpp.

◆ do_event_function

int Event::do_event_function = 0

Definition at line 65 of file event.hpp.

◆ extra_data

Eng3D::StringRef Event::extra_data

Definition at line 61 of file event.hpp.

◆ name

Eng3D::StringRef Event::name

Definition at line 56 of file event.hpp.

◆ receiver_ids

std::vector<NationId> Event::receiver_ids

Definition at line 57 of file event.hpp.

◆ text

Eng3D::StringRef Event::text

Definition at line 59 of file event.hpp.

◆ title

Eng3D::StringRef Event::title

Definition at line 60 of file event.hpp.


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