OpenEnroth 73e68f7
Loading...
Searching...
No Matches
Variables
UISpellbook.cpp File Reference
#include "GUI/UI/UISpellbook.h"
#include <string>
#include "Engine/AssetsManager.h"
#include "Engine/Engine.h"
#include "Engine/Objects/CharacterEnumFunctions.h"
#include "Engine/Graphics/Renderer/Renderer.h"
#include "Engine/Graphics/Viewport.h"
#include "Engine/Graphics/Image.h"
#include "Engine/Random/Random.h"
#include "Engine/Spells/Spells.h"
#include "Engine/Spells/SpellEnumFunctions.h"
#include "Engine/Localization.h"
#include "Engine/Party.h"
#include "Engine/Time/Timer.h"
#include "GUI/GUIButton.h"
#include "Io/Mouse.h"
#include "Media/Audio/AudioPlayer.h"

Variables

static constexpr IndexedArray< const char *, MAGIC_SCHOOL_FIRST, MAGIC_SCHOOL_LASTspellbook_texture_filename_suffices
 
static constexpr IndexedArray< std::array< unsigned char, 12 >, MAGIC_SCHOOL_FIRST, MAGIC_SCHOOL_LASTpSpellbookSpellIndices
 
static constexpr IndexedArray< const char *, MAGIC_SCHOOL_FIRST, MAGIC_SCHOOL_LASTtexNames
 
static constexpr IndexedArray< std::array< int, 2 >, MAGIC_SCHOOL_FIRST, MAGIC_SCHOOL_LASTtexture_tab_coord1
 
static constexpr IndexedArray< std::array< int, 2 >, MAGIC_SCHOOL_FIRST, MAGIC_SCHOOL_LASTtexture_tab_coord0
 
SpellId spellbookSelectedSpell
 

Variable Documentation

◆ pSpellbookSpellIndices

constexpr IndexedArray<std::array<unsigned char, 12>, MAGIC_SCHOOL_FIRST, MAGIC_SCHOOL_LAST> pSpellbookSpellIndices
staticconstexpr
Initial value:
= {{
{MAGIC_SCHOOL_FIRE, {0, 3, 1, 8, 11, 7, 4, 10, 6, 2, 5, 9}},
{MAGIC_SCHOOL_AIR, {0, 11, 2, 9, 6, 8, 5, 10, 3, 7, 1, 4}},
{MAGIC_SCHOOL_WATER, {0, 4, 8, 9, 1, 10, 3, 11, 7, 6, 2, 5}},
{MAGIC_SCHOOL_EARTH, {0, 7, 10, 8, 2, 11, 1, 5, 3, 6, 4, 9}},
{MAGIC_SCHOOL_SPIRIT, {0, 5, 10, 11, 7, 2, 8, 1, 4, 9, 3, 6}},
{MAGIC_SCHOOL_MIND, {0, 5, 9, 8, 3, 7, 6, 4, 1, 11, 2, 10}},
{MAGIC_SCHOOL_BODY, {0, 1, 6, 9, 3, 5, 8, 11, 7, 10, 4, 2}},
{MAGIC_SCHOOL_LIGHT, {0, 1, 10, 11, 9, 4, 3, 6, 5, 7, 8, 2}},
{MAGIC_SCHOOL_DARK, {0, 9, 3, 7, 1, 5, 2, 10, 11, 8, 6, 4}}
}}

◆ spellbook_texture_filename_suffices

constexpr IndexedArray<const char *, MAGIC_SCHOOL_FIRST, MAGIC_SCHOOL_LAST> spellbook_texture_filename_suffices
staticconstexpr

◆ spellbookSelectedSpell

SpellId spellbookSelectedSpell

◆ texNames

constexpr IndexedArray<const char *, MAGIC_SCHOOL_FIRST, MAGIC_SCHOOL_LAST> texNames
staticconstexpr
Initial value:
= {
{MAGIC_SCHOOL_FIRE, "SBFB00"},
{MAGIC_SCHOOL_AIR, "SBAB00"},
{MAGIC_SCHOOL_WATER, "SBWB00"},
{MAGIC_SCHOOL_EARTH, "SBEB00"},
{MAGIC_SCHOOL_SPIRIT, "SBSB00"},
{MAGIC_SCHOOL_MIND, "SBMB00"},
{MAGIC_SCHOOL_BODY, "SBBB00"},
{MAGIC_SCHOOL_LIGHT, "SBLB00"},
{MAGIC_SCHOOL_DARK, "SBDB00"}
}

◆ texture_tab_coord0

constexpr IndexedArray<std::array<int, 2>, MAGIC_SCHOOL_FIRST, MAGIC_SCHOOL_LAST> texture_tab_coord0
staticconstexpr
Initial value:
= {{
{MAGIC_SCHOOL_FIRE, {415, 10}},
{MAGIC_SCHOOL_AIR, {415, 46}},
{MAGIC_SCHOOL_WATER, {415, 83}},
{MAGIC_SCHOOL_EARTH, {415, 121}},
{MAGIC_SCHOOL_SPIRIT, {415, 158}},
{MAGIC_SCHOOL_MIND, {416, 196}},
{MAGIC_SCHOOL_BODY, {416, 234}},
{MAGIC_SCHOOL_LIGHT, {416, 271}},
{MAGIC_SCHOOL_DARK, {416, 307}}
}}

◆ texture_tab_coord1

constexpr IndexedArray<std::array<int, 2>, MAGIC_SCHOOL_FIRST, MAGIC_SCHOOL_LAST> texture_tab_coord1
staticconstexpr
Initial value:
= {{
{MAGIC_SCHOOL_FIRE, {406, 9}},
{MAGIC_SCHOOL_AIR, {406, 46}},
{MAGIC_SCHOOL_WATER, {406, 84}},
{MAGIC_SCHOOL_EARTH, {406, 121}},
{MAGIC_SCHOOL_SPIRIT, {407, 158}},
{MAGIC_SCHOOL_MIND, {405, 196}},
{MAGIC_SCHOOL_BODY, {405, 234}},
{MAGIC_SCHOOL_LIGHT, {405, 272}},
{MAGIC_SCHOOL_DARK, {405, 309}}
}}