Symphony Of Empires
TreatyClause::Humiliate Class Reference

#include <diplomacy.hpp>

Inheritance diagram for TreatyClause::Humiliate:
Collaboration diagram for TreatyClause::Humiliate:

Public Member Functions

 Humiliate ()
 
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 104 of file diplomacy.hpp.

Constructor & Destructor Documentation

◆ Humiliate()

TreatyClause::Humiliate::Humiliate ( )
inline

Definition at line 106 of file diplomacy.hpp.

Member Function Documentation

◆ cost()

unsigned TreatyClause::Humiliate::cost ( )
virtual

Reimplemented from TreatyClause::BaseClause.

Definition at line 71 of file diplomacy.cpp.

Here is the call graph for this function:

◆ enforce()

void TreatyClause::Humiliate::enforce ( )
virtual

Reimplemented from TreatyClause::BaseClause.

Definition at line 76 of file diplomacy.cpp.

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

◆ in_effect()

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

Reimplemented from TreatyClause::BaseClause.

Definition at line 83 of file diplomacy.cpp.

Here is the caller graph for this function:

Member Data Documentation

◆ amount

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

Definition at line 115 of file diplomacy.hpp.


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