Steam Fort 0.5
|
#include "main.hpp"
#include "ui.hpp"
#include "adventure.hpp"
#include <stdio.h>
#include <iostream>
#include "game.hpp"
Functions | |
void | buildSpellsUI () |
Create spells menu. | |
void | cast_spells () |
Cast all waiting spells. | |
void | magic_target (int sindex) |
Set target for spell. | |
void | magicClb (Widget *w, void *data) |
Cast or select target for selected spell. | |
void | setVisibleSpells (bool visible) |
Show/hide spells menu. | |
int | find_spell (std::string name) |
Find selected spell. | |
Variables | |
Container * | spellsmenu = new Container(0, 0, SCREENWIDTH, SCREENHEIGHT) |
void buildSpellsUI | ( | ) |
Create spells menu.
void cast_spells | ( | ) |
Cast all waiting spells.
int find_spell | ( | std::string | name | ) |
Find selected spell.
name | Name of spell to find. |
void magic_target | ( | int | sindex | ) |
Set target for spell.
sindex | Index of spell. |
void magicClb | ( | Widget * | w, |
void * | data | ||
) |
Cast or select target for selected spell.
w | Unused. |
data | Index of spell to cast |
void setVisibleSpells | ( | bool | visible | ) |
Show/hide spells menu.
visible | Did menu will be visible or not. |
Container* spellsmenu = new Container(0, 0, SCREENWIDTH, SCREENHEIGHT) |