Conquer Space 0.0.0
A space themed grand strategy game set in the near future, with realistic orbital mechanics, and an emphasis on economics and politics.
Public Member Functions | Private Attributes | List of all members
cqsp::common::components::Wallet Struct Reference

#include <economy.h>

Public Member Functions

 Wallet ()=default
 
 Wallet (entt::entity _currency, double _balance)
 
Walletoperator+= (const double amount)
 
Walletoperator-= (const double amount)
 
Walletoperator*= (const double coefficent)
 
 operator double () const
 
Walletoperator= (double _balance)
 
double GetBalance () const
 
void Reset ()
 
double GetGDPChange ()
 

Private Attributes

double balance = 0
 
double change = 0
 
double GDP_change = 0
 
entt::entity currency
 

Constructor & Destructor Documentation

◆ Wallet() [1/2]

cqsp::common::components::Wallet::Wallet ( )
default

◆ Wallet() [2/2]

cqsp::common::components::Wallet::Wallet ( entt::entity  _currency,
double  _balance 
)
inline

Member Function Documentation

◆ GetBalance()

double cqsp::common::components::Wallet::GetBalance ( ) const
inline

◆ GetGDPChange()

double cqsp::common::components::Wallet::GetGDPChange ( )
inline

◆ operator double()

cqsp::common::components::Wallet::operator double ( ) const
inline

◆ operator*=()

Wallet & cqsp::common::components::Wallet::operator*= ( const double  coefficent)
inline

◆ operator+=()

Wallet & cqsp::common::components::Wallet::operator+= ( const double  amount)
inline

◆ operator-=()

Wallet & cqsp::common::components::Wallet::operator-= ( const double  amount)
inline

◆ operator=()

Wallet & cqsp::common::components::Wallet::operator= ( double  _balance)
inline

◆ Reset()

void cqsp::common::components::Wallet::Reset ( )
inline

Member Data Documentation

◆ balance

double cqsp::common::components::Wallet::balance = 0
private

◆ change

double cqsp::common::components::Wallet::change = 0
private

◆ currency

entt::entity cqsp::common::components::Wallet::currency
private

◆ GDP_change

double cqsp::common::components::Wallet::GDP_change = 0
private

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