#ifndef OPENMW_PROCESSORPLAYERSHAPESHIFT_HPP #define OPENMW_PROCESSORPLAYERSHAPESHIFT_HPP #include "../PlayerProcessor.hpp" namespace mwmp { class ProcessorPlayerShapeshift : public PlayerProcessor { public: ProcessorPlayerShapeshift() { BPP_INIT(ID_PLAYER_SHAPESHIFT) } virtual void Do(PlayerPacket &packet, BasePlayer *player) { if (isLocal()) { static_cast(player)->setShapeshift(); } else if (player != 0) { static_cast(player)->setShapeshift(); } } }; } #endif //OPENMW_PROCESSORPLAYERSHAPESHIFT_HPP