Steam Fort 0.5
Classes | Typedefs | Enumerations | Functions

src/magic.hpp File Reference

#include <string>

Go to the source code of this file.

Classes

struct  Spell
 Contains all informations about spell. More...

Typedefs

typedef enum SpellTypes SPELLTYPE
 Contains spells types.
typedef enum SpellTargets SPELLTARGET
 Contains types of targets for spells.

Enumerations

enum  SpellTypes { DAMAGE, HEALING }
 

Contains spells types.

More...
enum  SpellTargets { SELF, ENEMY }
 

Contains types of targets for spells.

More...

Functions

void buildSpellsUI ()
 Create spells menu.
void setVisibleSpells (bool visible)
 Show/hide spells menu.
int find_spell (std::string name)
 Find selected spell.
void magic_target (int sdindex)
 Set target for spell.
void cast_spells ()
 Cast all waiting spells.

Typedef Documentation

typedef enum SpellTargets SPELLTARGET

Contains types of targets for spells.

typedef enum SpellTypes SPELLTYPE

Contains spells types.


Enumeration Type Documentation

Contains types of targets for spells.

Enumerator:
SELF 
ENEMY 
enum SpellTypes

Contains spells types.

Enumerator:
DAMAGE 
HEALING 

Function Documentation

void buildSpellsUI ( )

Create spells menu.

void cast_spells ( )

Cast all waiting spells.

int find_spell ( std::string  name)

Find selected spell.

Parameters:
nameName of spell to find.
Returns:
Index of spell or -1 if spell not found.
void magic_target ( int  sindex)

Set target for spell.

Parameters:
sindexIndex of spell.
void setVisibleSpells ( bool  visible)

Show/hide spells menu.

Parameters:
visibleDid menu will be visible or not.
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Defines