A GameObject collision exclusion list. More...
#include <ExcludeList.h>
Public Member Functions | |
void | add (const std::string &group) |
Add a group to the list. More... | |
bool | remove (const std::string &group) |
Remove a group from the list. More... | |
bool | contains (const std::string &group) |
Check if the list has a group or not. More... | |
std::size_t | getCount () const |
Get the number of groups in the list. More... | |
void | clear () |
Remove all groups from the list. More... | |
A GameObject collision exclusion list.
This class allows a GameObject to select which other game objects it should not collide with
Definition at line 39 of file ExcludeList.h.
void ime::ExcludeList::add | ( | const std::string & | group | ) |
Add a group to the list.
group | The name of the group to be added |
void ime::ExcludeList::clear | ( | ) |
Remove all groups from the list.
bool ime::ExcludeList::contains | ( | const std::string & | group | ) |
Check if the list has a group or not.
group | The name of the group to be checked |
std::size_t ime::ExcludeList::getCount | ( | ) | const |
Get the number of groups in the list.
bool ime::ExcludeList::remove | ( | const std::string & | group | ) |
Remove a group from the list.
group | The name of the group to be removed |