2018-01-29 20:32:51 +00:00
|
|
|
#ifndef OPENMW_PROCESSORPLAYERBEHAVIOR_HPP
|
|
|
|
#define OPENMW_PROCESSORPLAYERBEHAVIOR_HPP
|
|
|
|
|
|
|
|
#include "../PlayerProcessor.hpp"
|
|
|
|
|
|
|
|
namespace mwmp
|
|
|
|
{
|
2018-01-29 22:54:56 +00:00
|
|
|
class ProcessorPlayerBehavior final: public PlayerProcessor
|
2018-01-29 20:32:51 +00:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
ProcessorPlayerBehavior()
|
|
|
|
{
|
|
|
|
BPP_INIT(ID_PLAYER_BEHAVIOR)
|
|
|
|
}
|
|
|
|
|
|
|
|
virtual void Do(PlayerPacket &packet, BasePlayer *player)
|
|
|
|
{
|
|
|
|
if (isLocal())
|
|
|
|
{
|
|
|
|
//static_cast<LocalPlayer *>(player)->setBehavior();
|
|
|
|
}
|
|
|
|
else if (player != 0)
|
|
|
|
{
|
|
|
|
//static_cast<DedicatedPlayer *>(player)->setBehavior();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif //OPENMW_PROCESSORPLAYERBEHAVIOR_HPP
|