Symphony Of Empires
TreatyClause::Payment Class Reference

#include <diplomacy.hpp>

Inheritance diagram for TreatyClause::Payment:
Collaboration diagram for TreatyClause::Payment:

Public Member Functions

 Payment ()
 
unsigned cost ()
 
void enforce ()
 
bool in_effect () const
 
- Public Member Functions inherited from TreatyClause::BaseClause
 BaseClause ()=default
 
 BaseClause (const Nation &_sender, const Nation &_receiver)
 
virtual ~BaseClause ()=default
 

Public Attributes

float amount = 0.f
 
- Public Attributes inherited from TreatyClause::BaseClause
enum TreatyClauseType type
 
NationId sender_id
 
NationId receiver_id
 
size_t days_duration = 0
 
bool done = false
 

Detailed Description

Definition at line 89 of file diplomacy.hpp.

Constructor & Destructor Documentation

◆ Payment()

TreatyClause::Payment::Payment ( )
inline

Definition at line 91 of file diplomacy.hpp.

Member Function Documentation

◆ cost()

unsigned TreatyClause::Payment::cost ( )
virtual

Reimplemented from TreatyClause::BaseClause.

Definition at line 51 of file diplomacy.cpp.

◆ enforce()

void TreatyClause::Payment::enforce ( )
virtual

Reimplemented from TreatyClause::BaseClause.

Definition at line 55 of file diplomacy.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ in_effect()

bool TreatyClause::Payment::in_effect ( ) const
virtual

Reimplemented from TreatyClause::BaseClause.

Definition at line 64 of file diplomacy.cpp.

Here is the caller graph for this function:

Member Data Documentation

◆ amount

float TreatyClause::Payment::amount = 0.f

Definition at line 100 of file diplomacy.hpp.


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