Mana
Loading...
Searching...
No Matches
Functions
AbilityDB Namespace Reference

Ability information database. More...

Functions

void init ()
 
void readAbilityNode (XML::Node node, const std::string &filename)
 
void checkStatus ()
 
void unload ()
 
AbilityInfoget (int id)
 Gets the ability info for ID.
 
AbilityInfofind (std::string_view name)
 Finds an ability by name.
 

Detailed Description

Ability information database.

Function Documentation

◆ checkStatus()

void AbilityDB::checkStatus ( )

Definition at line 76 of file abilitydb.cpp.

◆ find()

AbilityInfo * AbilityDB::find ( std::string_view  name)

Finds an ability by name.

Returns nullptr when the ability could not be found.

Definition at line 98 of file abilitydb.cpp.

◆ get()

AbilityInfo * AbilityDB::get ( int  id)

Gets the ability info for ID.

Will return nullptr when it is a server-specific ability.

Definition at line 89 of file abilitydb.cpp.

◆ init()

void AbilityDB::init ( )

Definition at line 49 of file abilitydb.cpp.

◆ readAbilityNode()

void AbilityDB::readAbilityNode ( XML::Node  node,
const std::string &  filename 
)

Definition at line 55 of file abilitydb.cpp.

◆ unload()

void AbilityDB::unload ( )

Definition at line 81 of file abilitydb.cpp.