AllegroFlare/Screens/TitleScreen
view source (cpp, hpp, quintessence) • view tests (test file)
Properties
| event_emitter | AllegroFlare::EventEmitter* |
| font_bin | AllegroFlare::FontBin* |
| bitmap_bin | AllegroFlare::BitmapBin* |
| surface_width | std::size_t |
| surface_height | std::size_t |
| title_text | std::string |
| copyright_text | std::string |
| title_bitmap_name | std::string |
| title_font_name | std::string |
| menu_font_name | std::string |
| copyright_font_name | std::string |
| title_text_color | ALLEGRO_COLOR |
| menu_text_color | ALLEGRO_COLOR |
| menu_selector_color | ALLEGRO_COLOR |
| menu_selector_outline_color | ALLEGRO_COLOR |
| menu_selected_text_color | ALLEGRO_COLOR |
| copyright_text_color | ALLEGRO_COLOR |
| menu_selector_outline_stroke_thickness | float |
| title_font_size | int |
| menu_font_size | int |
| copyright_font_size | int |
| menu_options | std::vector<std::pair<std::string, std::string>> |
| on_menu_choice_callback_func | std::function<void(AllegroFlare::Screens::TitleScreen*, void*)> |
| on_menu_choice_callback_func_user_data | void* |
| on_finished_callback_func | std::function<void(AllegroFlare::Screens::TitleScreen*, void*)> |
| on_finished_callback_func_user_data | void* |
| background | AllegroFlare::Elements::Backgrounds::Base* |
| title_position_x | float |
| title_position_y | float |
| menu_position_x | float |
| menu_position_y | float |
| cursor_position | int |
| menu_move_sound_effect_identifier | std::string |
| menu_move_sound_effect_enabled | bool |
| menu_select_option_sound_effect_identifier | std::string |
| menu_select_option_sound_effect_enabled | bool |
| menu_option_selection_to_activation_delay | float |
| reveal_duration | float |
| reveal_started_at | float |
| showing_menu | bool |
| showing_copyright | bool |
| state | uint32_t |
| state_is_busy | bool |
| state_changed_at | float |
| menu_option_chosen | bool |
| menu_option_chosen_at | float |
| menu_option_activated | bool |
| STATE_UNDEF | uint32_t |
| STATE_REVEALING | uint32_t |
| STATE_AWAITING_USER_INPUT | uint32_t |
| STATE_MENU_OPTION_IS_CHOSEN | uint32_t |
| STATE_FINISHED | uint32_t |
Methods
| TODO() |
| set_font_name(std::string font_name="[unset-font_name]") |
| set_state(uint32_t state=STATE_UNDEF, bool override_if_busy=false) |
| update(float time_now=al_get_time()) |
| is_valid_state(uint32_t state=STATE_UNDEF) |
| infer_age(float time_of_event=0, float time_now=al_get_time()) |
| infer_reveal_age(float time_now=al_get_time()) |
| infer_reveal_age_n(float time_now=al_get_time()) |
| show_menu() |
| on_activate() |
| skip_to_title() |
| set_menu_options(std::vector<std::pair<std::string, std::string>> menu_options={}) |
| move_cursor_up() |
| move_cursor_down() |
| activate_menu_option(std::string menu_option_name="[unset-menu-option-name]") |
| select_menu_option() |
| processing_user_input() |
| is_state(uint32_t possible_state=STATE_UNDEF) |
| primary_timer_func() |
| render() |
| draw_title() |
| draw_copyright_text() |
| draw_cursor_box(float x=0.0f, float y=0.0f, float width=1.0f, float height=1.0f, ALLEGRO_COLOR fill_color=ALLEGRO_COLOR{1, 1, 1, 1}, ALLEGRO_COLOR outline_color=ALLEGRO_COLOR{1, 1, 1, 1}, float outline_stroke_thickness=1.0f, bool menu_option_chosen=false, float menu_option_chosen_at=0.0f, float menu_option_selection_to_activation_delay=1.0f, float time_now=al_get_time()) |
| draw_menu() |
| infer_current_menu_option_value() |
| infer_current_menu_option_label() |
| play_menu_move_sound_effect() |
| play_menu_select_option_sound_effect() |
| obtain_title_font() |
| obtain_menu_font() |
| obtain_copyright_font() |
| obtain_title_bitmap() |
| virtual_control_button_down_func(AllegroFlare::Player* player=nullptr, AllegroFlare::VirtualControllers::Base* virtual_controller=nullptr, int virtual_controller_button_num=0, bool is_repeat=false) |
| menu_is_empty() |
| menu_has_items() |
| build_default_menu_options() |
Dependencies
| {"symbol"=>"fmod", "headers"=>["cmath"]} |
| {"symbol"=>"al_get_time", "headers"=>["allegro5/allegro.h"]} |
| {"symbol"=>"ALLEGRO_FLARE_EVENT_START_NEW_GAME", "headers"=>["AllegroFlare/EventNames.hpp"]} |
| {"symbol"=>"std::vector<std::pair<std::string, std::string>>", "headers"=>["vector", "utility", "string"]} |
| {"symbol"=>"AllegroFlare::Screens::Base", "headers"=>["AllegroFlare/Screens/Base.hpp"]} |
| {"symbol"=>"ALLEGRO_COLOR", "headers"=>["allegro5/allegro.h"]} |
| {"symbol"=>"AllegroFlare::Placement2D", "headers"=>["AllegroFlare/Placement2D.hpp"]} |
| {"symbol"=>"AllegroFlare::VirtualController", "headers"=>["AllegroFlare/VirtualController.hpp"]} |
| {"symbol"=>"al_draw_rectangle", "headers"=>["allegro5/allegro_primitives.h"]} |
| {"symbol"=>"al_draw_filled_rectangle", "headers"=>["allegro5/allegro_primitives.h"]} |
| {"symbol"=>"al_is_primitives_addon_initialized", "headers"=>["allegro5/allegro_primitives.h"]} |
| {"symbol"=>"ALLEGRO_BITMAP", "headers"=>["allegro5/allegro.h"]} |
| {"symbol"=>"ALLEGRO_FONT", "headers"=>["allegro5/allegro_font.h"]} |
| {"symbol"=>"AllegroFlare::FontBin", "headers"=>["AllegroFlare/FontBin.hpp"]} |
| {"symbol"=>"AllegroFlare::BitmapBin", "headers"=>["AllegroFlare/BitmapBin.hpp"]} |
| {"symbol"=>"AllegroFlare::EventEmitter", "headers"=>["AllegroFlare/EventEmitter.hpp"]} |
| {"symbol"=>"AllegroFlare::Player", "headers"=>["AllegroFlare/Player.hpp"]} |
| {"symbol"=>"AllegroFlare::VirtualControllers::Base", "headers"=>["AllegroFlare/VirtualControllers/Base.hpp"]} |
| {"symbol"=>"AllegroFlare::VirtualControllers::GenericController", "headers"=>["AllegroFlare/VirtualControllers/GenericController.hpp"]} |
| {"symbol"=>"AllegroFlare::Player", "headers"=>["AllegroFlare/Player.hpp"]} |
| {"symbol"=>"AllegroFlare::VirtualControllers::Base", "headers"=>["AllegroFlare/VirtualControllers/Base.hpp"]} |
| {"symbol"=>"AllegroFlare::VirtualControllers::GenericController", "headers"=>["AllegroFlare/VirtualControllers/GenericController.hpp"]} |
| {"symbol"=>"AllegroFlare::Screens::TitleScreen", "headers"=>["AllegroFlare/Screens/TitleScreen.hpp"]} |
| {"symbol"=>"AllegroFlare::MotionKit", "headers"=>["AllegroFlare/MotionKit.hpp"]} |
| {"symbol"=>"AllegroFlare::ColorKit", "headers"=>["AllegroFlare/ColorKit.hpp"]} |
| {"symbol"=>"AllegroFlare::Elements::Backgrounds::Base", "headers"=>["AllegroFlare/Elements/Backgrounds/Base.hpp"]} |
Sponsor
Get the best designed cat shirts at clubatt.com
