Project Alice
Loading...
Searching...
No Matches
constants.hpp File Reference
#include <stdint.h>
Include dependency graph for constants.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  sys::msg_setting_entry
 

Namespaces

namespace  sys
 
namespace  sys::message_response
 
namespace  culture
 
namespace  economy
 
namespace  ui
 
namespace  province
 
namespace  province::border
 
namespace  map
 
namespace  ai
 

Enumerations

enum class  sys::virtual_key : uint8_t {
  sys::NONE = 0x00 , sys::LBUTTON = 0x01 , sys::RBUTTON = 0x02 , sys::CANCEL = 0x03 ,
  sys::MBUTTON = 0x04 , sys::XBUTTON_1 = 0x05 , sys::XBUTTON_2 = 0x06 , sys::BACK = 0x08 ,
  sys::TAB = 0x09 , sys::CLEAR = 0x0C , sys::RETURN = 0x0D , sys::SHIFT = 0x10 ,
  sys::CONTROL = 0x11 , sys::MENU = 0x12 , sys::PAUSE = 0x13 , sys::CAPITAL = 0x14 ,
  sys::KANA = 0x15 , sys::JUNJA = 0x17 , sys::FINAL = 0x18 , sys::KANJI = 0x19 ,
  sys::ESCAPE = 0x1B , sys::CONVERT = 0x1C , sys::NONCONVERT = 0x1D , sys::ACCEPT = 0x1E ,
  sys::MODECHANGE = 0x1F , sys::SPACE = 0x20 , sys::PRIOR = 0x21 , sys::NEXT = 0x22 ,
  sys::END = 0x23 , sys::HOME = 0x24 , sys::LEFT = 0x25 , sys::UP = 0x26 ,
  sys::RIGHT = 0x27 , sys::DOWN = 0x28 , sys::SELECT = 0x29 , sys::PRINT = 0x2A ,
  sys::EXECUTE = 0x2B , sys::SNAPSHOT = 0x2C , sys::INSERT = 0x2D , sys::DELETE_KEY = 0x2E ,
  sys::HELP = 0x2F , sys::NUM_0 = 0x30 , sys::NUM_1 = 0x31 , sys::NUM_2 = 0x32 ,
  sys::NUM_3 = 0x33 , sys::NUM_4 = 0x34 , sys::NUM_5 = 0x35 , sys::NUM_6 = 0x36 ,
  sys::NUM_7 = 0x37 , sys::NUM_8 = 0x38 , sys::NUM_9 = 0x39 , sys::A = 0x41 ,
  sys::B = 0x42 , sys::C = 0x43 , sys::D = 0x44 , sys::E = 0x45 ,
  sys::F = 0x46 , sys::G = 0x47 , sys::H = 0x48 , sys::I = 0x49 ,
  sys::J = 0x4A , sys::K = 0x4B , sys::L = 0x4C , sys::M = 0x4D ,
  sys::N = 0x4E , sys::O = 0x4F , sys::P = 0x50 , sys::Q = 0x51 ,
  sys::R = 0x52 , sys::S = 0x53 , sys::T = 0x54 , sys::U = 0x55 ,
  sys::V = 0x56 , sys::W = 0x57 , sys::X = 0x58 , sys::Y = 0x59 ,
  sys::Z = 0x5A , sys::LWIN = 0x5B , sys::RWIN = 0x5C , sys::APPS = 0x5D ,
  sys::SLEEP = 0x5F , sys::NUMPAD0 = 0x60 , sys::NUMPAD1 = 0x61 , sys::NUMPAD2 = 0x62 ,
  sys::NUMPAD3 = 0x63 , sys::NUMPAD4 = 0x64 , sys::NUMPAD5 = 0x65 , sys::NUMPAD6 = 0x66 ,
  sys::NUMPAD7 = 0x67 , sys::NUMPAD8 = 0x68 , sys::NUMPAD9 = 0x69 , sys::MULTIPLY = 0x6A ,
  sys::ADD = 0x6B , sys::SEPARATOR = 0x6C , sys::SUBTRACT = 0x6D , sys::DECIMAL = 0x6E ,
  sys::DIVIDE = 0x6F , sys::F1 = 0x70 , sys::F2 = 0x71 , sys::F3 = 0x72 ,
  sys::F4 = 0x73 , sys::F5 = 0x74 , sys::F6 = 0x75 , sys::F7 = 0x76 ,
  sys::F8 = 0x77 , sys::F9 = 0x78 , sys::F10 = 0x79 , sys::F11 = 0x7A ,
  sys::F12 = 0x7B , sys::F13 = 0x7C , sys::F14 = 0x7D , sys::F15 = 0x7E ,
  sys::F16 = 0x7F , sys::F17 = 0x80 , sys::F18 = 0x81 , sys::F19 = 0x82 ,
  sys::F20 = 0x83 , sys::F21 = 0x84 , sys::F22 = 0x85 , sys::F23 = 0x86 ,
  sys::F24 = 0x87 , sys::NAVIGATION_VIEW = 0x88 , sys::NAVIGATION_MENU = 0x89 , sys::NAVIGATION_UP = 0x8A ,
  sys::NAVIGATION_DOWN = 0x8B , sys::NAVIGATION_LEFT = 0x8C , sys::NAVIGATION_RIGHT = 0x8D , sys::NAVIGATION_ACCEPT = 0x8E ,
  sys::NAVIGATION_CANCEL = 0x8F , sys::NUMLOCK = 0x90 , sys::SCROLL = 0x91 , sys::OEM_NEC_EQUAL = 0x92 ,
  sys::LSHIFT = 0xA0 , sys::RSHIFT = 0xA1 , sys::LCONTROL = 0xA2 , sys::RCONTROL = 0xA3 ,
  sys::LMENU = 0xA4 , sys::RMENU = 0xA5 , sys::SEMICOLON = 0xBA , sys::PLUS = 0xBB ,
  sys::COMMA = 0xBC , sys::MINUS = 0xBD , sys::PERIOD = 0xBE , sys::FORWARD_SLASH = 0xBF ,
  sys::TILDA = 0xC0 , sys::OPEN_BRACKET = 0xDB , sys::BACK_SLASH = 0xDC , sys::CLOSED_BRACKET = 0xDD ,
  sys::QUOTE = 0xDE
}
 
enum class  sys::key_modifiers : uint8_t {
  sys::modifiers_none = 0x0 , sys::modifiers_alt = 0x4 , sys::modifiers_ctrl = 0x2 , sys::modifiers_shift = 0x1 ,
  sys::modifiers_ctrl_shift = 0x3 , sys::modifiers_ctrl_alt = 0x6 , sys::modifiers_alt_shift = 0x5 , sys::modifiers_all = 0x7
}
 
enum class  sys::autosave_frequency : uint8_t { sys::none = 0 , sys::yearly = 1 , sys::monthly = 2 , sys::daily = 3 }
 
enum class  sys::map_label_mode : uint8_t { sys::none = 0 , sys::linear = 1 , sys::quadratic = 2 , sys::cubic = 3 }
 
enum class  sys::map_zoom_mode : uint8_t {
  sys::panning = 0 , sys::inverted = 1 , sys::centered = 2 , sys::to_cursor = 3 ,
  sys::away_from_cursor = 4
}
 
enum class  sys::map_vassal_color_mode : uint8_t { sys::inherit = 0 , sys::same = 1 , sys::none = 2 }
 
enum class  sys::army_group_regiment_status : uint8_t {
  sys::move_to_target , sys::move_to_port , sys::standby , sys::await_transport ,
  sys::is_transported , sys::disembark , sys::embark
}
 
enum class  sys::army_group_regiment_task : uint8_t { sys::idle , sys::gather_at_hq , sys::defend_position , sys::siege }
 
enum class  sys::army_group_order : uint8_t { sys::siege , sys::defend , sys::designate_port , sys::none }
 
enum class  sys::commodity_group : uint8_t {
  sys::military_goods = 0 , sys::raw_material_goods , sys::industrial_goods , sys::consumer_goods ,
  sys::industrial_and_consumer_goods , sys::count
}
 
enum class  sys::message_setting_type : uint8_t {
  sys::revolt = 0 , sys::war_on_nation = 1 , sys::war_by_nation = 2 , sys::wargoal_added = 3 ,
  sys::siegeover_by_nation = 4 , sys::siegeover_on_nation = 5 , sys::colony_finished = 6 , sys::reform_gained = 7 ,
  sys::reform_lost = 8 , sys::ruling_party_change = 9 , sys::upperhouse = 10 , sys::electionstart = 11 ,
  sys::electiondone = 12 , sys::breakcountry = 13 , sys::peace_accepted_from_nation = 14 , sys::peace_rejected_from_nation = 15 ,
  sys::peace_accepted_by_nation = 16 , sys::peace_rejected_by_nation = 17 , sys::mobilization_start = 18 , sys::mobilization_end = 19 ,
  sys::factory_complete = 20 , sys::rr_complete = 21 , sys::fort_complete = 22 , sys::naval_base_complete = 23 ,
  sys::province_event = 24 , sys::national_event = 25 , sys::major_event = 26 , sys::invention = 27 ,
  sys::tech = 28 , sys::leader_dies = 29 , sys::land_combat_starts_on_nation = 30 , sys::naval_combat_starts_on_nation = 31 ,
  sys::land_combat_starts_by_nation = 32 , sys::naval_combat_starts_by_nation = 33 , sys::movement_finishes = 34 , sys::decision = 35 ,
  sys::lose_great_power = 36 , sys::become_great_power = 37 , sys::war_subsidies_start_by_nation = 38 , sys::war_subsidies_start_on_nation = 39 ,
  sys::war_subsidies_end_by_nation = 40 , sys::war_subsidies_end_on_nation = 41 , sys::reparations_start_by_nation = 42 , sys::reparations_start_on_nation = 43 ,
  sys::reparations_end_by_nation = 44 , sys::reparations_end_on_nation = 45 , sys::mil_access_start_by_nation = 46 , sys::mil_access_start_on_nation = 47 ,
  sys::mil_access_end_by_nation = 48 , sys::mil_access_end_on_nation = 49 , sys::mil_access_declined_by_nation = 50 , sys::mil_access_declined_on_nation = 51 ,
  sys::alliance_starts = 52 , sys::alliance_ends = 53 , sys::alliance_declined_by_nation = 54 , sys::alliance_declined_on_nation = 55 ,
  sys::ally_called_accepted_by_nation = 56 , sys::ally_called_declined_by_nation = 57 , sys::discredit_by_nation = 58 , sys::ban_by_nation = 59 ,
  sys::expell_by_nation = 60 , sys::discredit_on_nation = 61 , sys::ban_on_nation = 62 , sys::expell_on_nation = 63 ,
  sys::increase_opinion = 64 , sys::decrease_opinion_by_nation = 65 , sys::decrease_opinion_on_nation = 66 , sys::rem_sphere_by_nation = 67 ,
  sys::rem_sphere_on_nation = 68 , sys::removed_from_sphere = 69 , sys::add_sphere = 70 , sys::added_to_sphere = 71 ,
  sys::increase_relation_by_nation = 72 , sys::increase_relation_on_nation = 73 , sys::decrease_relation_by_nation = 74 , sys::decrease_relation_on_nation = 75 ,
  sys::join_war_by_nation = 76 , sys::join_war_on_nation = 77 , sys::gw_unlocked = 78 , sys::war_becomes_great = 79 ,
  sys::cb_detected_on_nation = 80 , sys::cb_detected_by_nation = 81 , sys::crisis_join_offer_accepted_by_nation = 82 , sys::crisis_join_offer_declined_by_nation = 83 ,
  sys::crisis_join_offer_accepted_from_nation = 84 , sys::crisis_join_offer_declined_from_nation = 85 , sys::crisis_resolution_accepted = 86 , sys::crisis_becomes_war = 87 ,
  sys::crisis_resolution_declined_from_nation = 88 , sys::crisis_starts = 89 , sys::crisis_attacker_backer = 90 , sys::crisis_defender_backer = 91 ,
  sys::crisis_fizzle = 92 , sys::war_join_by = 93 , sys::war_join_on = 94 , sys::cb_fab_finished = 95 ,
  sys::cb_fab_cancelled = 96 , sys::crisis_voluntary_join = 97 , sys::army_built = 98 , sys::navy_built = 99 ,
  sys::bankruptcy = 100 , sys::entered_automatic_alliance = 101 , sys::chat_message = 102 , sys::count = 128
}
 
enum class  sys::message_base_type : uint8_t {
  sys::revolt = 0 , sys::war = 1 , sys::wargoal_added = 2 , sys::siegeover = 3 ,
  sys::colony_finished = 4 , sys::reform_gained = 5 , sys::reform_lost = 6 , sys::ruling_party_change = 7 ,
  sys::upperhouse = 8 , sys::electionstart = 9 , sys::electiondone = 10 , sys::breakcountry = 11 ,
  sys::peace_accepted = 12 , sys::peace_rejected = 13 , sys::mobilization_start = 14 , sys::mobilization_end = 15 ,
  sys::factory_complete = 16 , sys::rr_complete = 17 , sys::fort_complete = 18 , sys::naval_base_complete = 19 ,
  sys::province_event = 20 , sys::national_event = 21 , sys::major_event = 22 , sys::invention = 23 ,
  sys::tech = 24 , sys::leader_dies = 25 , sys::land_combat_starts = 26 , sys::naval_combat_starts = 27 ,
  sys::movement_finishes = 28 , sys::decision = 29 , sys::lose_great_power = 30 , sys::become_great_power = 31 ,
  sys::war_subsidies_start = 32 , sys::war_subsidies_end = 33 , sys::reparations_start = 34 , sys::reparations_end = 35 ,
  sys::mil_access_start = 36 , sys::mil_access_end = 37 , sys::mil_access_declined = 38 , sys::alliance_starts = 39 ,
  sys::alliance_ends = 40 , sys::alliance_declined = 41 , sys::ally_called_accepted = 42 , sys::ally_called_declined = 43 ,
  sys::discredit = 44 , sys::ban = 45 , sys::expell = 46 , sys::increase_opinion = 47 ,
  sys::decrease_opinion = 48 , sys::rem_sphere = 49 , sys::add_to_sphere = 50 , sys::increase_relation = 51 ,
  sys::decrease_relation = 52 , sys::join_war = 53 , sys::gw_unlocked = 54 , sys::war_becomes_great = 55 ,
  sys::cb_detected = 56 , sys::crisis_join_offer_accepted = 57 , sys::crisis_join_offer_declined = 58 , sys::crisis_resolution_accepted = 59 ,
  sys::crisis_becomes_war = 60 , sys::crisis_resolution_declined = 61 , sys::crisis_starts = 62 , sys::crisis_attacker_backer = 63 ,
  sys::crisis_defender_backer = 64 , sys::crisis_fizzle = 65 , sys::cb_fab_finished = 66 , sys::cb_fab_cancelled = 67 ,
  sys::crisis_voluntary_join = 68 , sys::army_built = 69 , sys::navy_built = 70 , sys::bankruptcy = 71 ,
  sys::entered_automatic_alliance = 72 , sys::chat_message = 73 , sys::count = 74
}
 
enum class  sys::network_mode_type { sys::single_player , sys::client , sys::host }
 
enum class  sys::color_blind_mode {
  sys::none , sys::protan , sys::deutan , sys::tritan ,
  sys::achroma
}
 
enum  sys::save_type : uint8_t { sys::normal , sys::autosave , sys::bookmark }
 
enum class  economy::province_building_type : uint8_t {
  economy::railroad , economy::fort , economy::naval_base , economy::bank ,
  economy::university , economy::last , economy::factory , economy::province_selector ,
  economy::province_immigrator
}
 
enum class  ui::production_sort_order {
  ui::name , ui::factories , ui::primary_workers , ui::secondary_workers ,
  ui::owners , ui::infrastructure
}
 
enum class  ui::production_window_tab : uint8_t { ui::factories = 0x0 , ui::investments = 0x1 , ui::projects = 0x2 , ui::goods = 0x3 }
 
enum class  ai::fleet_activity {
  ai::unspecified = 0 , ai::boarding = 1 , ai::transporting = 2 , ai::returning_to_base = 3 ,
  ai::attacking = 4 , ai::merging = 5 , ai::idle = 6 , ai::unloading = 7 ,
  ai::failed_transport = 8
}
 
enum class  ai::army_activity {
  ai::unspecified = 0 , ai::on_guard = 1 , ai::attacking = 2 , ai::merging = 3 ,
  ai::transport_guard = 4 , ai::transport_attack = 5 , ai::attack_gathered = 7 , ai::attack_transport = 8
}
 

Variables

constexpr float sys::ui_scales [] = {0.25f, 0.30f, 0.35f, 0.5f, 0.75f, 1.0f, 1.25f, 1.5f, 1.75f, 2.0f, 2.5f, 3.0f}
 
constexpr uint32_t sys::ui_scales_count = 12
 
constexpr int32_t sys::max_autosaves = 16
 
constexpr msg_setting_entry sys::message_setting_map [size_t(message_base_type::count)]
 
constexpr uint8_t sys::message_response::ignore = 0x00
 
constexpr uint8_t sys::message_response::log = 0x01
 
constexpr uint8_t sys::message_response::popup = 0x02
 
constexpr uint8_t sys::message_response::pause = 0x04
 
constexpr uint8_t sys::message_response::sound = 0x08
 
constexpr uint8_t sys::message_response::standard_sound = sound
 
constexpr uint8_t sys::message_response::standard_log = log | sound
 
constexpr uint8_t sys::message_response::standard_popup = log | sound | popup
 
constexpr uint8_t sys::message_response::standard_pause = log | sound | popup | pause
 
constexpr int32_t sys::max_event_options = 8
 
constexpr uint32_t sys::max_languages = 64
 
constexpr int32_t culture::max_issue_options = 6
 
constexpr int32_t economy::max_building_types = 5
 
constexpr uint32_t ui::max_chat_message_len = 64
 
constexpr uint8_t province::border::state_bit = 0x01
 
constexpr uint8_t province::border::national_bit = 0x02
 
constexpr uint8_t province::border::coastal_bit = 0x04
 
constexpr uint8_t province::border::impassible_bit = 0x08
 
constexpr uint8_t province::border::non_adjacent_bit = 0x10
 
constexpr uint8_t province::border::river_crossing_bit = 0x20
 
constexpr uint8_t province::border::test_bit = 0x40
 
constexpr float map::min_zoom = 1.0f
 
constexpr float map::max_zoom = 75.0f
 
constexpr float map::zoom_close = 5.f
 
constexpr float map::zoom_very_close = 8.f