Symphony Of Empires
Treaty Struct Reference

#include <diplomacy.hpp>

Inheritance diagram for Treaty:
Collaboration diagram for Treaty:

Public Member Functions

bool does_participate (const Nation &nation) const
 
bool in_effect () const
 
- Public Member Functions inherited from Entity< TreatyId >
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
 
NationId sender_id
 
NationId receiver_id
 
std::vector< TreatyClause::BaseClause * > clauses
 
std::vector< std::pair< NationId, TreatyApproval > > approval_status
 
- Public Attributes inherited from Entity< TreatyId >
Id cached_id
 Id used to speed up Id lookups on any context. More...
 

Additional Inherited Members

- Public Types inherited from Entity< TreatyId >
using Id = TreatyId
 
- Static Public Member Functions inherited from Entity< TreatyId >
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 267 of file diplomacy.hpp.

Member Function Documentation

◆ does_participate()

bool Treaty::does_participate ( const Nation nation) const

Definition at line 163 of file diplomacy.cpp.

◆ in_effect()

bool Treaty::in_effect ( ) const

Definition at line 171 of file diplomacy.cpp.

Here is the call graph for this function:

Member Data Documentation

◆ approval_status

std::vector<std::pair<NationId, TreatyApproval> > Treaty::approval_status

Definition at line 277 of file diplomacy.hpp.

◆ clauses

std::vector<TreatyClause::BaseClause*> Treaty::clauses

Definition at line 275 of file diplomacy.hpp.

◆ name

Eng3D::StringRef Treaty::name

Definition at line 271 of file diplomacy.hpp.

◆ receiver_id

NationId Treaty::receiver_id

Definition at line 273 of file diplomacy.hpp.

◆ sender_id

NationId Treaty::sender_id

Definition at line 272 of file diplomacy.hpp.


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