Logo Search packages:      
Sourcecode: 7kaa version File versions  Download package

Public Types | Public Member Functions | Public Attributes

NationBase Class Reference

Inheritance diagram for NationBase:
Inheritance graph
[legend]
Collaboration diagram for NationBase:
Collaboration graph
[legend]

List of all members.

Public Types

enum  { NATION_NAME_LEN = 50 }

Public Member Functions

void add_cheat (float cheatAmt)
void add_expense (int expenseType, float expenseAmt, int fixedExpense=0)
void add_food (float)
void add_income (int incomeType, float incomeAmt, int fixedIncome=0)
int all_population ()
int base_town_count_in_region (int regionId)
void being_attacked (int attackNationRecno)
char * cash_str ()
void change_ai_relation_level (short nationRecno, int levelChange)
void change_all_people_loyalty (int loyaltyChange, int raceId=0)
void change_reputation (float)
float cheat_365days ()
void check_lose ()
void check_win ()
void civilian_killed (int civilianRaceId, int isAttacker)
virtual void clear_ptr ()
void close_all_firm ()
void consume_food (float)
virtual UCHAR crc8 ()
void defeated ()
virtual void deinit ()
void deinit_all_unit ()
void disp_nation_color (int x, int y)
int economic_rank_rating ()
void end_treaty (int endTreatyNationRecno, int newStatus)
void establish_contact (int nationRecno)
float expense_365days (int expenseType)
float expense_365days ()
float fixed_expense_365days ()
float fixed_income_365days ()
float fixed_profit_365days ()
float food_change_365days ()
char * food_str ()
void form_alliance_treaty (int nationRecno)
void form_friendly_treaty (int nationRecno)
int get_economic_rating ()
int get_overall_rating ()
int get_population_rating ()
NationRelationget_relation (int nationRecno)
char get_relation_passable (short nationRecno)
char get_relation_should_attack (short nationRecno)
char get_relation_status (short nationRecno)
void give_tech (int toNationRecno, int techId, int techVersion)
void give_tribute (int toNationRecno, int tributeAmt)
int goal_destroy_monster_achieved ()
int goal_destroy_nation_achieved ()
int goal_economic_score_achieved ()
int goal_population_achieved ()
int goal_total_score_achieved ()
void hand_over_to (int handoverNationRecno)
int has_people ()
void import_goods (int importType, int nationRecno, float importAmt)
float income_365days (int incomeType)
float income_365days ()
virtual void init (int nationType, int raceId, int colorSchemeId, DWORD playerId=0)
void init_relation (int relationNationRecno)
int is_ai ()
int is_at_war ()
int is_own ()
int is_remote ()
int kill_monster_rank_rating ()
const char * king_name (int firstWordOnly=0)
int military_rank_rating ()
char * nation_name ()
void next_day ()
void next_month ()
void next_year ()
int overall_rank_rating ()
char * peace_duration_str ()
int peaceful_days ()
int population_rank_rating ()
float profit_365days ()
int read_file (File *filePtr)
float reputation_change_365days ()
int reputation_rank_rating ()
int revealed_by_phoenix (int xLoc, int yLoc)
void set_at_war_today (int attackerUnitRecno=0)
void set_auto_collect_tax_loyalty (int loyaltyLevel)
void set_auto_grant_loyalty (int loyaltyLevel)
void set_king (int kingUnitRecno, int firstKing)
void set_relation_passable (short nationRecno, char status)
void set_relation_should_attack (short nationRecno, char newValue, char remoteAction)
void set_relation_status (short nationRecno, char newStatus, char recursiveCall=0)
void set_trade_treaty (int nationRecno, char allowFlag)
void succeed_king (int kingUnitRecno)
void surrender (int toNationRecno)
int total_tech_level (int unitClass=0)
float total_year_trade (int nationRecno)
int trade_rating (int nationRecno)
float true_income_365days ()
float true_profit_365days ()
void update_nation_rating ()
int write_file (File *filePtr)
int yearly_food_change ()
int yearly_food_consumption ()
int yearly_food_production ()

Public Attributes

short auto_collect_tax_loyalty
short auto_grant_loyalty
char base_count_array [MAX_RACE]
float cash
char cheat_enabled_flag
char color_scheme_id
float cur_year_cheat
float cur_year_expense
float cur_year_expense_array [EXPENSE_TYPE_COUNT]
float cur_year_fixed_expense
float cur_year_fixed_income
float cur_year_food_change
float cur_year_food_in
float cur_year_food_out
float cur_year_income
float cur_year_income_array [INCOME_TYPE_COUNT]
float cur_year_profit
float cur_year_reputation_change
int economic_rating
int enemy_civilian_killed
int enemy_firm_destroyed
int enemy_ship_destroyed
int enemy_soldier_killed
int enemy_weapon_destroyed
float food
char is_allied_with_player
char is_at_war_today
char is_at_war_yesterday
float kill_monster_score
char king_leadership
short king_unit_recno
char know_base_array [MAX_RACE]
short largest_town_pop
short largest_town_recno
short last_attacker_unit_recno
int last_build_firm_date
short last_caravan_id
int last_independent_unit_join_date
short last_unit_name_id_array [MAX_UNIT_TYPE]
int last_war_date
float last_year_cheat
float last_year_expense
float last_year_expense_array [EXPENSE_TYPE_COUNT]
float last_year_fixed_expense
float last_year_fixed_income
float last_year_food_change
float last_year_food_in
float last_year_food_out
float last_year_income
float last_year_income_array [INCOME_TYPE_COUNT]
float last_year_profit
float last_year_reputation_change
int military_rating
char nation_color
short nation_firm_count
int nation_name_id
char nation_name_str [NATION_NAME_LEN+1]
short nation_recno
char nation_type
char next_frame_ready
int overall_rating
int own_civilian_killed
int own_firm_destroyed
int own_ship_destroyed
int own_soldier_killed
int own_weapon_destroyed
DWORD player_id
int population_rating
char race_id
short raw_count_array [MAX_RAW]
NationRelation relation_array [MAX_NATION]
char relation_passable_array [MAX_NATION]
char relation_should_attack_array [MAX_NATION]
char relation_status_array [MAX_NATION]
float reputation
int total_firm_count
int total_general_count
int total_human_count
int total_jobless_population
int total_population
int total_ship_combat_level
int total_ship_count
int total_spy_count
int total_unit_count
int total_weapon_count

Detailed Description

Definition at line 140 of file ONATIONB.h.


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

Generated by  Doxygen 1.6.0   Back to index