====== GAME_ACTION ====== Deprecated names: * EVENT_ACTION //Abstract class//\\ **[[:custom-classes#Extendable classes|Extendable]]**\\ **Category**: Data Inherited by: * [[:api:game_action_add_event | GAME_ACTION_ADD_EVENT]] * [[:api:game_action_add_mandate_type | GAME_ACTION_ADD_MANDATE_TYPE]] * [[:api:game_action_add_taxation | GAME_ACTION_ADD_TAXATION]] * [[:api:game_action_add_trade_route | GAME_ACTION_ADD_TRADE_ROUTE]] * [[:api:game_action_apply_game_rule | GAME_ACTION_APPLY_GAME_RULE]] * [[:api:game_action_apply_happiness_factor | GAME_ACTION_APPLY_HAPPINESS_FACTOR]] * [[:api:game_action_audio | GAME_ACTION_AUDIO]] * [[:api:game_action_change_weather | GAME_ACTION_CHANGE_WEATHER]] * [[:api:game_action_conditional_action_list | GAME_ACTION_CONDITIONAL_ACTION_LIST]] * [[:api:game_action_delay_mandate | GAME_ACTION_DELAY_MANDATE]] * [[:api:game_action_deliver_resource | GAME_ACTION_DELIVER_RESOURCE]] * [[:api:game_action_dice_roller | GAME_ACTION_DICE_ROLLER]] * [[:api:game_action_dice_roller_boolean_outcome | GAME_ACTION_DICE_ROLLER_BOOLEAN_OUTCOME]] * [[:api:game_action_execute_action_by_game_step | GAME_ACTION_EXECUTE_ACTION_BY_GAME_STEP]] * [[:api:game_action_generate_reward | GAME_ACTION_GENERATE_REWARD]] * [[:api:game_action_give_blueprint | GAME_ACTION_GIVE_BLUEPRINT]] * [[:api:game_action_give_influence | GAME_ACTION_GIVE_INFLUENCE]] * [[:api:game_action_give_quest | GAME_ACTION_GIVE_QUEST]] * [[:api:game_action_give_random_resource | GAME_ACTION_GIVE_RANDOM_RESOURCE]] * [[:api:game_action_give_resource_list | GAME_ACTION_GIVE_RESOURCE_LIST]] * [[:api:game_action_give_resource_list_per_villager_status | GAME_ACTION_GIVE_RESOURCE_LIST_PER_VILLAGER_STATUS]] * [[:api:game_action_give_reward | GAME_ACTION_GIVE_REWARD]] * [[:api:game_action_give_territory | GAME_ACTION_GIVE_TERRITORY]] * [[:api:game_action_ignore | GAME_ACTION_IGNORE]] * [[:api:game_action_immigrate | GAME_ACTION_IMMIGRATE]] * [[:api:game_action_kick_unemployed_villagers | GAME_ACTION_KICK_UNEMPLOYED_VILLAGERS]] * [[:api:game_action_military_campaign_action | GAME_ACTION_MILITARY_CAMPAIGN_ACTION]] * [[:api:game_action_pause_recurring_event | GAME_ACTION_PAUSE_RECURRING_EVENT]] * [[:api:game_action_random_action | GAME_ACTION_RANDOM_ACTION]] * [[:api:game_action_remove_mandate_type | GAME_ACTION_REMOVE_MANDATE_TYPE]] * [[:api:game_action_remove_taxation | GAME_ACTION_REMOVE_TAXATION]] * [[:api:game_action_remove_trade_route | GAME_ACTION_REMOVE_TRADE_ROUTE]] * [[:api:game_action_resume_recurring_event | GAME_ACTION_RESUME_RECURRING_EVENT]] * [[:api:game_action_set_village_level | GAME_ACTION_SET_VILLAGE_LEVEL]] * [[:api:game_action_show_narrative_panel | GAME_ACTION_SHOW_NARRATIVE_PANEL]] * [[:api:game_action_show_notification | GAME_ACTION_SHOW_NOTIFICATION]] * [[:api:game_action_show_outcome_panel | GAME_ACTION_SHOW_OUTCOME_PANEL]] * [[:api:game_action_snooze_recuring_event | GAME_ACTION_SNOOZE_RECURING_EVENT]] * [[:api:game_action_stub | GAME_ACTION_STUB]] * [[:api:game_action_trigger_event_callback | GAME_ACTION_TRIGGER_EVENT_CALLBACK]] * [[:api:game_action_trigger_immigration_wave | GAME_ACTION_TRIGGER_IMMIGRATION_WAVE]] * [[:api:game_action_trigger_important_help | GAME_ACTION_TRIGGER_IMPORTANT_HELP]] * [[:api:game_action_trigger_military_campaign | GAME_ACTION_TRIGGER_MILITARY_CAMPAIGN]] * [[:api:game_action_unlock_building_list | GAME_ACTION_UNLOCK_BUILDING_LIST]] * [[:api:game_action_unlock_edict | GAME_ACTION_UNLOCK_EDICT]] * [[:api:game_action_unlock_edict_slot | GAME_ACTION_UNLOCK_EDICT_SLOT]] * [[:api:game_action_unlock_privilege | GAME_ACTION_UNLOCK_PRIVILEGE]] * [[:api:game_action_unlock_privilege_slot | GAME_ACTION_UNLOCK_PRIVILEGE_SLOT]] * [[:api:game_action_unlock_system | GAME_ACTION_UNLOCK_SYSTEM]] * [[:api:game_action_unlock_unlockable | GAME_ACTION_UNLOCK_UNLOCKABLE]] * [[:api:game_action_unlock_workplace_recipe | GAME_ACTION_UNLOCK_WORKPLACE_RECIPE]] * [[:api:game_action_upgrade_trade_route | GAME_ACTION_UPGRADE_TRADE_ROUTE]] * [[:api:game_action_use_influence | GAME_ACTION_USE_INFLUENCE]] * [[:api:game_action_visit | GAME_ACTION_VISIT]] //[[:annotations#cloneable|Cloneable]]// ===== Properties ===== ---- ==== DebugComment ==== //[[:annotations#serialized|Serialized]]// Unlocalized string for debug purposes (could show in some logs) * **Type**: ''[[:data-types#string|string]]'' * **Expected**: ''string value'' ---- ==== Delay ==== //[[:annotations#serialized|Serialized]]// * **Type**: ''[[:api:time_system | TIME_SYSTEM]]'' * **Expected**: ''TIME_SYSTEM value'' * **Default value**: ''nil'' ---- ==== IsHidden ==== //[[:annotations#serialized|Serialized]]// * **Type**: ''[[:data-types#boolean|boolean]]'' * **Expected**: ''boolean value'' * **Default value**: ''false'' ===== Functions ===== ---- ==== getHeaderText ==== //[[:custom-classes#Extendable classes|Virtual function]]// ''[[:data-types#string|string]] **getHeaderText**()'' ---- ==== getLocalizedName ==== //[[:custom-classes#Extendable classes|Virtual function]]// ''[[:data-types#string|string]] **getLocalizedName**()'' ---- ==== execute ==== //[[:custom-classes#Extendable classes|Virtual function]]// ''void **execute**(//level// [, //contextualComponent//])'' ^ Name ^ Type ^ Description ^ | //''level''// | ''[[:api:level | LEVEL]]'' | | | //''contextualComponent''// | ''[[:api:component | COMPONENT]]'' | | ---- ==== canBeExecuted ==== //[[:custom-classes#Extendable classes|Virtual function]]// ''[[:data-types#boolean|boolean]] **canBeExecuted**()'' ---- ==== cancelAction ==== //[[:custom-classes#Extendable classes|Virtual function]]// ''void **cancelAction**(//level//)'' ^ Name ^ Type ^ Description ^ | //''level''// | ''[[:api:level | LEVEL]]'' | | ---- ==== isHidden ==== //[[:custom-classes#Extendable classes|Virtual function]]// ''[[:data-types#boolean|boolean]] **isHidden**()'' ---- ==== internalIsEqual ==== //[[:custom-classes#Extendable classes|Virtual function]], [[:custom-classes#Protected|Protected function]]// ''[[:data-types#boolean|boolean]] **internalIsEqual**(//otherDataAction//)'' ^ Name ^ Type ^ Description ^ | //''otherDataAction''// | ''[[:api:game_action | GAME_ACTION]]'' | |