You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
678 B
26 lines
678 B
#pragma once |
|
|
|
#include <optional> |
|
#include <string> |
|
#include <vector> |
|
|
|
#include <expected.hpp> |
|
|
|
#include "engine/clx_sprite.hpp" |
|
#include "engine/surface.hpp" |
|
#include "tables/spelldat.h" |
|
|
|
namespace devilution { |
|
|
|
struct Player; |
|
|
|
tl::expected<void, std::string> InitSpellBook(); |
|
void FreeSpellBook(); |
|
void CheckSBook(); |
|
void DrawSpellBook(const Surface &out); |
|
|
|
std::vector<SpellID> GetSpellBookAvailableSpells(int tab, const Player &player); |
|
std::optional<SpellID> GetSpellBookFirstAvailableSpell(int tab, const Player &player); |
|
std::optional<SpellID> GetSpellBookAdjacentAvailableSpell(int tab, const Player &player, SpellID currentSpell, int delta); |
|
|
|
} // namespace devilution
|
|
|