Public Member Functions | Public Attributes | List of all members
BehaviourTable Class Reference

A container for a block's behaviours. More...

#include <Behaviours.h>

Public Member Functions

void add (Behaviour *b)
 
 BehaviourTable ()
 
Behaviourget (String n)
 
Behaviourget_by_num (int n)
 
int get_num_behaviours ()
 

Public Attributes

int num = 0
 

Detailed Description

A container for a block's behaviours.

This class allows for up to 40 behaviours to be stored and retrieved.

Constructor & Destructor Documentation

◆ BehaviourTable()

BehaviourTable::BehaviourTable ( )

Member Function Documentation

◆ add()

void BehaviourTable::add ( Behaviour b)

Add a behaviour to the table.

◆ get()

Behaviour* BehaviourTable::get ( String  n)

Search for and return a behaviour by name.

◆ get_by_num()

Behaviour* BehaviourTable::get_by_num ( int  n)

Search for and return a behaviour by index.

◆ get_num_behaviours()

int BehaviourTable::get_num_behaviours ( )

Return the number of behaviours in the table.

Member Data Documentation

◆ num

int BehaviourTable::num = 0

The documentation for this class was generated from the following file: