2017-03-31 18:36:24 +00:00
|
|
|
#ifndef OPENMW_PROCESSORPLAYERATTACK_HPP
|
|
|
|
#define OPENMW_PROCESSORPLAYERATTACK_HPP
|
|
|
|
|
2017-07-03 17:13:10 +00:00
|
|
|
#include "../PlayerProcessor.hpp"
|
2017-03-31 18:36:24 +00:00
|
|
|
|
|
|
|
namespace mwmp
|
|
|
|
{
|
|
|
|
class ProcessorPlayerAttack : public PlayerProcessor
|
|
|
|
{
|
|
|
|
PlayerPacketController *playerController;
|
|
|
|
public:
|
|
|
|
ProcessorPlayerAttack()
|
|
|
|
{
|
|
|
|
BPP_INIT(ID_PLAYER_ATTACK)
|
2017-04-09 05:51:28 +00:00
|
|
|
playerController = Networking::get().getPlayerPacketController();
|
2017-03-31 18:36:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void Do(PlayerPacket &packet, Player &player) override
|
|
|
|
{
|
|
|
|
DEBUG_PRINTF(strPacketID.c_str());
|
|
|
|
|
|
|
|
if (!player.creatureStats.mDead)
|
|
|
|
{
|
|
|
|
player.sendToLoaded(&packet);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif //OPENMW_PROCESSORPLAYERATTACK_HPP
|