Symphony Of Empires
Building::Investment Struct Reference

#include <building.hpp>

Public Member Functions

void invest (float amount)
 
float get_ownership (float total_investments) const
 
float get_dividends (float profit, float ownership) const
 

Public Attributes

float total = 0.f
 

Detailed Description

Definition at line 135 of file building.hpp.

Member Function Documentation

◆ get_dividends()

float Building::Investment::get_dividends ( float  profit,
float  ownership 
) const
inline

Definition at line 146 of file building.hpp.

◆ get_ownership()

float Building::Investment::get_ownership ( float  total_investments) const
inline

Definition at line 142 of file building.hpp.

◆ invest()

void Building::Investment::invest ( float  amount)
inline

Definition at line 138 of file building.hpp.

Member Data Documentation

◆ total

float Building::Investment::total = 0.f

Definition at line 136 of file building.hpp.


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