mirror of https://github.com/AxioDL/metaforce.git
29 lines
598 B
C++
29 lines
598 B
C++
|
#ifndef __URDE_CAIFUNCMAP_HPP__
|
||
|
#define __URDE_CAIFUNCMAP_HPP__
|
||
|
|
||
|
#include "RetroTypes.hpp"
|
||
|
|
||
|
namespace urde
|
||
|
{
|
||
|
enum class EStateMsg
|
||
|
{
|
||
|
One,
|
||
|
};
|
||
|
|
||
|
class CStateManager;
|
||
|
class CAi;
|
||
|
typedef void (CAi::*CAiStateFunc)(CStateManager&, EStateMsg, float);
|
||
|
typedef bool (CAi::*CAiTriggerFunc)(CStateManager&, float);
|
||
|
class CAiFuncMap
|
||
|
{
|
||
|
std::map<const char*, CAiStateFunc> x0_stateFuncs;
|
||
|
std::map<const char*, CAiTriggerFunc> x10_triggerFuncs;
|
||
|
public:
|
||
|
CAiFuncMap();
|
||
|
CAiStateFunc GetStateFunc(const char*);
|
||
|
CAiTriggerFunc GetTriggerFunc(const char*);
|
||
|
};
|
||
|
}
|
||
|
|
||
|
#endif // __URDE_CAIFUNCMAP_HPP__
|