|
helapordo 1.4.15
|
#include "../utils/game_utils.h"#include "../core/sprites.h"#include "../utils/turn_op.h"#include "../core/game_animations.h"#include "../utils/rooms.h"#include <raymath.h>

Go to the source code of this file.
Data Structures | |
| struct | Gui_Button |
| struct | Gui_Theme |
| struct | Gui_Button_Group |
| struct | Gui_Button_Layout |
| struct | Gui_State |
Functions | |
| void | handleTutorial (S4C_Color *palette) |
| Shows tutorial info. | |
| void | setEnemySprite (Enemy *e) |
| Takes a Enemy pointer and prepares its sprite field by copying it line by line from enemies_sprites, defined in sprites.h header. | |
| void | setEquipSprite (Equip *e) |
| Takes a Equip pointer and prepares its sprite field by copying it line by line from equips_sprites, defined in sprites.h header. | |
| void | setEquipslotSprite (Equipslot *s) |
| Takes a Equipslot pointer and prepares its sprite field by copying it line by line from equipzones_sprites, defined in sprites.h header. | |
| void | setConsumableSprite (Consumable *c) |
| Takes a Consumable pointer and prepares its sprite field by copying it line by line from consumables_sprites, defined in sprites.h header. | |
| void | setArtifactSprite (Artifact *a) |
| Takes a Artifact pointer and prepares its sprite field by copying it line by line from artifacts_sprites, defined in sprites.h header. | |
| void | setBossSprite (Boss *b) |
| Takes a Boss pointer and prepares its sprite field by copying it line by line from bosses_sprites, defined in sprites.h header. | |
| void | setFighterSprite (Fighter *f) |
| Takes a Fighter pointer and prepares its sprite field by copying it line by line. | |
| void | setChestSprite (Chest *c) |
| Takes a Chest pointer and prepares its sprite field by copying it line by line. | |
| void | ToggleFullScreenWindow (int w_W, int w_H) |
| void | hlpd_draw_notifications (RingaBuf *rb_notifications, Rectangle notifications_rect) |
| Takes a RingaBuf to take the Notification from, and a Rectangle to draw them to. | |
| void | update_GameScreen (Gui_State *gui_state, Floor **current_floor, Path **game_path, Fighter **player, Room **current_room, Gamestate **gamestate, RingaBuf *rb_notifications, int *current_x, int *current_y, int logo_sleep, bool *pause_animation, Koliseo_Temp **floor_kls, KLS_Conf temporary_kls_conf, int *current_anim_frame, loadInfo *load_info, int *saveslot_index, char current_save_path[1500], char seed[PATH_SEED_BUFSIZE+1], bool is_seeded, int *roomsDone, int *enemyTotal) |
| void | draw_GameScreen_Texture (RenderTexture2D target_txtr, Gui_State gui_state, int fps_target, int current_anim_frame, Floor *current_floor, Path *game_path, Fighter *player, Room *current_room, Gamestate *gamestate, RingaBuf *rb_notifications, int current_x, int current_y, loadInfo *load_info, int saveslot_index, char current_save_path[1500], char seed[PATH_SEED_BUFSIZE+1]) |
| void | fight_Special (specialMove move, Rectangle *w, Fighter *f, Enemy *e, Boss *b, Path *p, int roomIndex, int enemyIndex, int isBoss) |
| Takes a specialMove, a Fighter, a Enemy, a Boss and a Path pointers (and integers for current room and enemy indexes) and uses the requested special move. | |
| #define GUI_CLASSPICK_GROUP_BOX_COLOR GUI_GAMEPICK_GROUP_BOX_COLOR |
| #define GUI_CLASSPICK_GROUP_BUTTONS_MAX BUTTON_CLASS_ASSASSIN |
| #define GUI_CLASSPICK_GROUP_TEXT_COLOR GUI_GAMEPICK_GROUP_TEXT_COLOR |
| #define GUI_DEBUG_FIGHTER_LAYOUT_GROUPS_MAX DEBUG_FIGHTER_LAYOUT_ARTIFACTSBAG_GROUP |
| #define GUI_DEBUG_GROUP_BOX_COLOR GUI_FIGHT_GROUP_BOX_COLOR |
| #define GUI_DEBUG_GROUP_BUTTONS_MAX BUTTON_DEBUG |
| #define GUI_DEBUG_GROUP_TEXT_COLOR GUI_FIGHT_GROUP_TEXT_COLOR |
| #define GUI_EQUIPS_GROUP_BOX_COLOR GUI_FIGHT_GROUP_BOX_COLOR |
| #define GUI_EQUIPS_GROUP_BUTTONS_MAX BUTTON_CHECK_LOADOUT |
| #define GUI_EQUIPS_GROUP_TEXT_COLOR GUI_FIGHT_GROUP_TEXT_COLOR |
| #define GUI_FIGHT_GROUP_BOX_COLOR GUI_GAMEPICK_GROUP_BOX_COLOR |
| #define GUI_FIGHT_GROUP_BUTTONS_MAX BUTTON_STATS |
| #define GUI_FIGHT_GROUP_TEXT_COLOR GUI_GAMEPICK_GROUP_TEXT_COLOR |
| #define GUI_GAMEPICK_GROUP_BOX_COLOR { 0, 117, 44, 255 } |
| #define GUI_GAMEPICK_GROUP_BUTTONS_MAX BUTTON_LOAD_GAME |
| #define GUI_GAMEPICK_GROUP_TEXT_COLOR { 80, 80, 80, 255 } |
| #define GUI_SAVESLOTPICK_GROUP_BOX_COLOR GUI_GAMEPICK_GROUP_BOX_COLOR |
| #define GUI_SAVESLOTPICK_GROUP_BUTTONS_MAX BUTTON_SAVESLOT_3 |
| #define GUI_SAVESLOTPICK_GROUP_TEXT_COLOR GUI_GAMEPICK_GROUP_TEXT_COLOR |
| #define GUI_SHOP_LAYOUT_GROUPS_MAX SHOP_LAYOUT_OTHERS_GROUP |
| #define GUI_SHOP_OTHERS_GROUP_BOX_COLOR { 0, 117, 44, 255 } |
| #define GUI_SHOP_OTHERS_GROUP_BUTTONS_MAX BUTTON_SELL_ALL |
| #define GUI_SHOP_OTHERS_GROUP_TEXT_COLOR { 80, 80, 80, 255 } |
| #define GUI_SPECIAL_GROUP_BOX_COLOR GUI_FIGHT_GROUP_BOX_COLOR |
| #define GUI_SPECIAL_GROUP_BUTTONS_MAX BUTTON_SPECIAL_4 |
| #define GUI_SPECIAL_GROUP_TEXT_COLOR GUI_FIGHT_GROUP_TEXT_COLOR |
| #define GUI_TREASURE_GROUP_BOX_COLOR GUI_FIGHT_GROUP_BOX_COLOR |
| #define GUI_TREASURE_GROUP_BUTTONS_MAX BUTTON_LEAVE_TREASURE |
| #define GUI_TREASURE_GROUP_TEXT_COLOR GUI_FIGHT_GROUP_TEXT_COLOR |
| #define GUI_TXTFIELD_GROUP_BOX_COLOR { 200, 200, 200, 255 } |
| #define GUI_TXTFIELD_GROUP_BUTTONS_MAX BUTTON_NAME_TXTFIELD |
| #define GUI_TXTFIELD_GROUP_TEXT_COLOR { 0, 0, 0, 255 } |
| #define MIN | ( | a, | |
| b ) |
Macro used to calculate the scale of render texture.
| typedef struct Gui_Button Gui_Button |
| typedef struct Gui_Button_Group Gui_Button_Group |
| typedef struct Gui_Button_Layout Gui_Button_Layout |
| typedef enum Gui_Button_State Gui_Button_State |
| typedef enum Gui_Debug_Group_Button_Index Gui_Debug_Group_Button_Index |
| typedef enum Gui_Fight_Group_Button_Index Gui_Fight_Group_Button_Index |
| typedef enum Gui_Shop_Layout_Group_Index Gui_Shop_Layout_Group_Index |
| typedef struct Gui_State Gui_State |
| typedef struct Gui_Theme Gui_Theme |
| enum Gui_Button_State |
| void draw_GameScreen_Texture | ( | RenderTexture2D | target_txtr, |
| Gui_State | gui_state, | ||
| int | fps_target, | ||
| int | current_anim_frame, | ||
| Floor * | current_floor, | ||
| Path * | game_path, | ||
| Fighter * | player, | ||
| Room * | current_room, | ||
| Gamestate * | gamestate, | ||
| RingaBuf * | rb_notifications, | ||
| int | current_x, | ||
| int | current_y, | ||
| loadInfo * | load_info, | ||
| int | saveslot_index, | ||
| char | current_save_path[1500], | ||
| char | seed[PATH_SEED_BUFSIZE+1] ) |
| void fight_Special | ( | specialMove | move, |
| Rectangle * | w, | ||
| Fighter * | f, | ||
| Enemy * | e, | ||
| Boss * | b, | ||
| Path * | p, | ||
| int | roomIndex, | ||
| int | enemyIndex, | ||
| int | isBoss ) |
Takes a specialMove, a Fighter, a Enemy, a Boss and a Path pointers (and integers for current room and enemy indexes) and uses the requested special move.
Prints the result to the passed WINDOW. The isBoss integer determines if the receiver is the Enemy or the Boss.
| move | The specialMove to execute. |
| w | The WINDOW pointer to print results to. |
| f | The Fighter pointer with a equipsBag. |
| e | The Enemy pointer for current enemy. |
| b | The Boss pointer. |
| p | The Path pointer of the current game. |
| roomIndex | The index of current room. |
| enemyIndex | The index of current enemy. |
| isBoss | Is equal to 1 when receiver is a Boss. |
| void handleTutorial | ( | S4C_Color * | palette | ) |
Shows tutorial info.
| void hlpd_draw_notifications | ( | RingaBuf * | rb_notifications, |
| Rectangle | notifications_rect ) |
Takes a RingaBuf to take the Notification from, and a Rectangle to draw them to.
| rb_notifications | The RingaBuf holding the Notification |
| notifications_rect | The Rectangle used to draw the notifications |
| void setArtifactSprite | ( | Artifact * | a | ) |
Takes a Artifact pointer and prepares its sprite field by copying it line by line from artifacts_sprites, defined in sprites.h header.
| a | The Artifact pointer whose sprite field will be initialised. |
| void setBossSprite | ( | Boss * | b | ) |
Takes a Boss pointer and prepares its sprite field by copying it line by line from bosses_sprites, defined in sprites.h header.
| b | The Boss pointer whose sprite field will be initialised. |
| void setChestSprite | ( | Chest * | c | ) |
| void setConsumableSprite | ( | Consumable * | c | ) |
Takes a Consumable pointer and prepares its sprite field by copying it line by line from consumables_sprites, defined in sprites.h header.
| c | The Consumable pointer whose sprite field will be initialised. |
| void setEnemySprite | ( | Enemy * | e | ) |
Takes a Enemy pointer and prepares its sprite field by copying it line by line from enemies_sprites, defined in sprites.h header.
| e | The Enemy pointer whose sprite field will be initialised. |
| void setEquipslotSprite | ( | Equipslot * | s | ) |
| void setEquipSprite | ( | Equip * | e | ) |
| void setFighterSprite | ( | Fighter * | f | ) |
Takes a Fighter pointer and prepares its sprite field by copying it line by line.
| f | The Fighter pointer whose sprite field will be initialised. |
| void ToggleFullScreenWindow | ( | int | w_W, |
| int | w_H ) |
| void update_GameScreen | ( | Gui_State * | gui_state, |
| Floor ** | current_floor, | ||
| Path ** | game_path, | ||
| Fighter ** | player, | ||
| Room ** | current_room, | ||
| Gamestate ** | gamestate, | ||
| RingaBuf * | rb_notifications, | ||
| int * | current_x, | ||
| int * | current_y, | ||
| int | logo_sleep, | ||
| bool * | pause_animation, | ||
| Koliseo_Temp ** | floor_kls, | ||
| KLS_Conf | temporary_kls_conf, | ||
| int * | current_anim_frame, | ||
| loadInfo * | load_info, | ||
| int * | saveslot_index, | ||
| char | current_save_path[1500], | ||
| char | seed[PATH_SEED_BUFSIZE+1], | ||
| bool | is_seeded, | ||
| int * | roomsDone, | ||
| int * | enemyTotal ) |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |