2016-04-25 05:46:28 +00:00
|
|
|
#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
|
|
|
|
{
|
2016-05-18 03:57:43 +00:00
|
|
|
std::unordered_map<std::string, CAiStateFunc> x0_stateFuncs;
|
|
|
|
std::unordered_map<std::string, CAiTriggerFunc> x10_triggerFuncs;
|
2016-04-25 05:46:28 +00:00
|
|
|
public:
|
|
|
|
CAiFuncMap();
|
|
|
|
CAiStateFunc GetStateFunc(const char*);
|
|
|
|
CAiTriggerFunc GetTriggerFunc(const char*);
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif // __URDE_CAIFUNCMAP_HPP__
|