An OpenMW mod that lets you play the whole Elder Scrolls III: Morrowind as a top-down isometric game — with full online co-op or MMO modes.
C++
#ifndef OPENMW_PROCESSORPLAYERANIMPLAY_HPP
#define OPENMW_PROCESSORPLAYERANIMPLAY_HPP
#include "../PlayerProcessor.hpp"
namespace mwmp
{
class ProcessorPlayerAnimPlay final: public PlayerProcessor
{
public:
ProcessorPlayerAnimPlay()
{
BPP_INIT(ID_PLAYER_ANIM_PLAY)
}
virtual void Do(PlayerPacket &packet, BasePlayer *player)
{
if (isLocal())
{
LOG_MESSAGE_SIMPLE(TimedLog::LOG_INFO, "Received ID_PLAYER_ANIM_PLAY about LocalPlayer from server");
static_cast<LocalPlayer*>(player)->playAnimation();
}
else if (player != 0)
static_cast<DedicatedPlayer*>(player)->playAnimation();
}
};
}
#endif //OPENMW_PROCESSORPLAYERANIMPLAY_HPP