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

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

FirmMarket Class Reference

Inheritance diagram for FirmMarket:
Inheritance graph
Collaboration diagram for FirmMarket:
Collaboration graph

List of all members.

Public Member Functions

int ai_build_neighbor_firm (int firmId)
void ai_del_firm ()
void ai_firm_captured (int capturerNationRecno)
virtual int ai_has_excess_worker ()
int ai_recruit_worker ()
virtual int ai_should_close ()
virtual void assign_overseer (int overseerUnitRecno)
virtual 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)
int can_assign_capture ()
int can_hire_caravan ()
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_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)
void clear_market_goods (int position)
virtual void clear_ptr ()
void complete_construction ()
virtual UCHAR crc8 ()
int create_worker_unit (Worker &thisWorker)
virtual void deinit ()
void destruct_firm (char remoteAction)
void detect_info ()
void detect_info_both ()
void disp_info_both (int refreshFlag)
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 free_slot_count ()
int get_closest_town_name_id ()
int get_should_set_power ()
short hire_caravan (char remoteAction)
float income_365days ()
virtual void init (int xLoc, int yLoc, int nationRecno, int firmId, const char *buildCode=NULL, short builderRecno=0)
void init_derived ()
void init_name ()
int is_in_zoom_win ()
int is_market_linked_to_town (int ownBaseTownOnly=0)
virtual 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 ()
void next_month ()
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)
int read_derived_file (File *filePtr)
void release_firm_link (int)
void release_link ()
void release_town_link (int)
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)
virtual void sell_firm (char remoteAction)
void sell_goods ()
int set_builder (short newBuilderRecno)
void set_goods (int isRaw, int goodsId, int position)
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 stock_value_index ()
int think_build_factory (int rawId)
int think_capture ()
int think_hire_inn_unit ()
virtual void think_linked_town_change_nation (int linkedTownRecno, int oldNationRecno, int newNationRecno)
void think_repair ()
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 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
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
char is_retail_market
int last_attacked_date
int last_import_new_goods_date
float last_year_income
short linked_firm_array [MAX_LINKED_FIRM_FIRM]
char linked_firm_count
char linked_firm_enable_array [MAX_LINKED_FIRM_FIRM]
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
MarketGoods market_goods_array [MAX_MARKET_GOODS]
MarketGoodsmarket_product_array [MAX_PRODUCT]
MarketGoodsmarket_raw_array [MAX_RAW]
float max_hit_points
float max_stock_qty
short nation_recno
short next_output_firm_recno
short next_output_link_id
int no_linked_town_since_date
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
char selected_worker_id
int setup_date
char should_close_flag
char should_set_power
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)
virtual void deinit_derived ()
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 ()
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

int ai_create_new_trade (Firm *firmPtr, int stop1PickUpType, int stop2PickUpType)
void ai_update_link_status ()
void disp_income (int dispY1, int refreshFlag)
void free_unused_slot ()
void input_goods (int maxInputQty)
void put_market_info (int dispY1, int refreshFlag)
void set_next_output_firm ()
int think_build_export_market (int townRecno)
int think_del ()
void think_demand_trade_treaty ()
int think_export_product ()
int think_import_new_product ()
int think_import_specific_product (int productId)
int think_increase_existing_product_supply ()
void think_market_build_factory ()
int think_mft_specific_product (int rawId)
void update_trade_link ()

Detailed Description

Definition at line 83 of file OF_MARK.h.

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

Generated by  Doxygen 1.6.0   Back to index