Class:Empire
From Star Ruler
Contents |
Members
- const int ID
- Color color
Methods
Diplomacy
- bool isAllied( const
Empire@) const - bool setAllied(
Empire@, bool) const - bool isEnemy( const
Empire@) const - bool setEnemy(
Empire@, bool) const
Fleets
- uint getFleetsCount() const
-
Fleet@ getFleet(uint fleetId) - Object getFleetCommander(uint fleetId)
- Object getFleetCommander( const
string& name)
Messages
- string getLastMessage() const
- float getMsgDelay() const
- void sendMessage( const
Empire@,
DiploTopic,
DiploMood,
DiploAttitude) const
Research
- double getResearchRate() const
- void addResearch(float amount)
- void modResearchRate(float amount)
Settings
Ship Layouts
uint getShipLayoutCnt() const
const HullLayout@ getShipLayout(uint index) const
const HullLayout@ getShipLayout(const string@ &in name) const
Stats
Known stat names in the base game are:
- Metals
- Electronics
- AdvParts (Advanced Parts)
- Food
- Guds (Goods)
- Luxs (Luxuries)
void getStatStats(const string@ &in name, float onHand, float income, float expense, float demand ) const
float getStat(const string@ &in name) const
float getStat(const Empire@ empire, const string@ &in name) const
void addStat(const string@ &in name, float amount)
float consumeStat(const string@ &in name, float amount)
Other
- string getName() const
- bool isValid() const
- bool isAI() const
- bool isReserved() const
- void regScriptData( const
string&in, const
string&in) - Emperor getRuler() const
- Emperor getRuler()
- void updateHull( const
string&in, float) const - void toggleObsolete( const
string&in) const
