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

Public Member Functions | Public Attributes | Static Public Attributes | Protected Member Functions | Private Member Functions

FirmHarbor Class Reference

Inheritance diagram for FirmHarbor:
Inheritance graph
Collaboration diagram for FirmHarbor:
Collaboration graph

List of all members.

Public Member Functions

void add_queue (int unitId)
int ai_build_firm (int firmId)
int ai_build_neighbor_firm (int firmId)
void ai_del_firm ()
void ai_firm_captured (int capturerNationRecno)
UnitMarineai_get_free_trade_ship ()
virtual int ai_has_excess_worker ()
int ai_recruit_worker ()
virtual int ai_should_close ()
virtual void ai_update_link_status ()
virtual void assign_overseer (int overseerUnitRecno)
void assign_unit (int unitRecno)
virtual void assign_worker (int workerUnitRecno)
virtual void auto_defense (short targetRecno)
int average_worker_skill ()
virtual void being_attacked (int attackerUnitRecno)
void build_ship (int unitId, char remoteAction)
int can_assign_capture ()
int can_build_ship ()
int can_sell ()
int can_spy_bribe (int bribeWorkerId, int briberNationRecno)
int can_toggle_firm_link (int firmRecno)
int can_toggle_town_link ()
int can_worker_capture (int captureNationRecno)
void cancel_build_unit ()
void cancel_construction (char remoteAction)
void capture_firm (int newNationRecno)
virtual FirmBasecast_to_FirmBase ()
virtual FirmCampcast_to_FirmCamp ()
virtual FirmFactorycast_to_FirmFactory ()
virtual FirmFarm * cast_to_FirmFarm ()
virtual FirmHarborcast_to_FirmHarbor ()
virtual FirmInncast_to_FirmInn ()
virtual FirmMarketcast_to_FirmMarket ()
virtual FirmMinecast_to_FirmMine ()
virtual FirmResearchcast_to_FirmResearch ()
virtual FirmWarcast_to_FirmWar ()
virtual void change_nation (int newNationRecno)
virtual void clear_ptr ()
void complete_construction ()
virtual UCHAR crc8 ()
int create_worker_unit (Worker &thisWorker)
virtual void deinit ()
void deinit_derived ()
void del_hosted_ship (int delUnitRecno)
void destruct_firm (char remoteAction)
void detect_info ()
void detect_info_both ()
void disp_info_both (int refreshFlag)
virtual void draw (int displayLayer=1)
int draw_detect_link_line (int actionDetect)
virtual void draw_frame (int frameId, int displayLayer=1)
virtual void draw_full_size (int displayLayer=1)
void draw_selected ()
void establish_contact_with_player ()
int find_settle_town ()
virtual char * firm_name ()
int get_closest_town_name_id ()
char get_linked_factory_num ()
char get_linked_market_num ()
char get_linked_mine_num ()
int get_should_set_power ()
float income_365days ()
void init (int xLoc, int yLoc, int nationRecno, int firmId, const char *buildCode=NULL, short builderRecno=0)
void init_name ()
int is_in_zoom_win ()
int is_operating ()
virtual int is_worker_full ()
void kill_all_worker ()
void kill_builder (short builderRecno)
void kill_overseer ()
void kill_worker (int workerId)
int locate_space (int removeFirm, int &xLoc, int &yLoc, int xLoc2, int yLoc2, int width, int height, int mobileType=UNIT_LAND, int regionId=0)
char majority_race ()
void mobilize_all_worker (int leaderUnitRecno)
int mobilize_builder (short recno)
virtual int mobilize_overseer ()
virtual int mobilize_worker (int workerId, char remoteAction)
void next_day ()
virtual void next_month ()
virtual void next_year ()
int own_firm ()
void process_ai ()
void process_animation ()
void process_common_ai ()
void process_construction ()
void process_repair ()
virtual void process_tell ()
virtual int pull_town_people (int townRecno, char remoteAction, int raceId=0, int forcePull=0)
void put_info (int refreshFlag)
virtual int read_derived_file (File *)
void release_firm_link (int)
void release_link ()
void release_town_link (int)
void remove_queue (int unitId)
void resign_all_worker (int disappearFlag=0)
void resign_overseer ()
virtual int resign_worker (int workerId)
void restore_world_matrix ()
void reward (int workerId, int remoteAction)
void sail_ship (int unitRecno, char remoteAction)
virtual void sell_firm (char remoteAction)
int set_builder (short newBuilderRecno)
void set_worker_home_town (int townRecno, char remoteAction, int workerId=0)
void set_world_matrix ()
void setup_link ()
char * setup_years_str (int=0)
int should_show_info ()
int spy_bribe (int bribeAmount, short briber, short workerId)
int spy_bribe_succeed_chance (int bribeAmount, short briberSpyRecno, short workerId)
int think_build_factory (int rawId)
void think_build_firm ()
void think_build_ship ()
int think_capture ()
int think_hire_inn_unit ()
virtual void think_linked_town_change_nation (int linkedTownRecno, int oldNationRecno, int newNationRecno)
void think_repair ()
int think_trade ()
void toggle_firm_link (int linkId, int toggleFlag, char remoteAction, int setBoth=0)
void toggle_town_link (int linkId, int toggleFlag, char remoteAction, int setBoth=0)
int total_linked_trade_firm ()
void update_linked_firm_info ()
int validate_cur_bribe ()
virtual int write_derived_file (File *)
int year_expense ()

Public Attributes

short abs_x1
short abs_x2
short abs_y1
short abs_y2
char ai_link_checked
char ai_processed
char ai_sell_flag
char ai_should_build_factory_count
char ai_status
char build_queue_array [MAX_BUILD_SHIP_QUEUE]
char build_queue_count
short build_unit_id
short builder_recno
BYTE builder_region_id
short center_x
short center_y
short closest_town_name_id
char cur_frame
float cur_year_income
char firm_ai
short firm_build_id
char firm_id
short firm_name_instance_id
short firm_recno
char firm_skill_id
float hit_points
UCHAR land_region_id
int last_attacked_date
float last_year_income
char link_checked
short linked_factory_array [MAX_LINKED_FIRM_FIRM]
char linked_factory_num
short linked_firm_array [MAX_LINKED_FIRM_FIRM]
char linked_firm_count
char linked_firm_enable_array [MAX_LINKED_FIRM_FIRM]
short linked_market_array [MAX_LINKED_FIRM_FIRM]
char linked_market_num
short linked_mine_array [MAX_LINKED_FIRM_FIRM]
char linked_mine_num
short linked_town_array [MAX_LINKED_FIRM_TOWN]
char linked_town_count
char linked_town_enable_array [MAX_LINKED_FIRM_TOWN]
short loc_x1
short loc_x2
short loc_y1
short loc_y2
float max_hit_points
short nation_recno
char no_neighbor_space
short overseer_recno
short overseer_town_recno
char player_spy_count
float productivity
char race_id
BYTE region_id
char remain_frame_delay
BYTE sabotage_level
UCHAR sea_region_id
char selected_worker_id
int setup_date
short ship_count
short ship_recno_array [MAX_SHIP_IN_HARBOR]
char should_close_flag
char should_set_power
DWORD start_build_frame_no
char under_construction
char worker_count

Static Public Attributes

static short action_spy_recno
static char assassinate_result = 0
static char bribe_result = BRIBE_NONE
static char firm_menu_mode = FIRM_MENU_MAIN

Protected Member Functions

void add_income (int incomeType, float incomeAmt)
int assign_settle (int raceId, int unitLoyalty, int isOverseer)
int best_worker_id ()
void calc_productivity ()
int can_player_spy_capture ()
int construction_frame ()
void consume_food ()
int create_unit (int unitId, int townZoneRecno=0, int unitHasJob=0)
void detect_assassinate_result ()
int detect_basic_info ()
void detect_bribe_menu ()
void detect_spy_button ()
void detect_spy_menu ()
int detect_worker_list ()
void disp_assassinate_result (int refreshFlag)
void disp_basic_info (int dispY1, int refreshFlag)
void disp_bribe_menu (int refreshFlag)
void disp_bribe_unit (int dispY1)
void disp_hit_point (int dispY1)
void disp_overseer_info (int dispY1, int refreshFlag)
void disp_spy_button (int x, int y, int refreshFlag)
void disp_spy_menu (int refreshFlag)
void disp_worker_info (int dispY1, int refreshFlag)
void disp_worker_list (int dispY1, int refreshFlag)
void draw_cargo (int cargoCount, char *cargoBitmapPtr)
void free_worker_room ()
virtual void init_derived ()
void pay_expense ()
void process_independent_town_worker ()
void recruit_worker ()
void spy_bribe (int bribeAmount)
void think_worker_migrate ()
void update_loyalty ()
void update_worker ()
void worker_migrate (int workerId, int destTownZoneRecno, int newLoyalty)

Private Member Functions

void add_hosted_ship (int shipRecno)
void detect_build_menu ()
int detect_det ()
void detect_main_menu ()
void disp_build_button (int y, int unitId, int buttonUp)
void disp_build_info (int refreshFlag)
void disp_build_menu (int refreshFlag)
void disp_main_menu (int refreshFlag)
void disp_queue_button (int y, int unitId, int buttonUp)
void disp_ship_goods (UnitMarine *shipUnit, int dispY1, int refreshFlag)
void disp_ship_units (UnitMarine *shipUnit, int dispY1, int refreshFlag)
void process_build ()
void process_queue ()
void put_det (int refreshFlag)
void repair_ship ()
int should_show_harbor_info ()

Detailed Description

Definition at line 41 of file OF_HARB.h.

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

Generated by  Doxygen 1.6.0   Back to index