2017-04-16 07:00:25 +00:00
|
|
|
#ifndef OPENMW_PROCESSORPLAYERATTACK_HPP
|
|
|
|
#define OPENMW_PROCESSORPLAYERATTACK_HPP
|
|
|
|
|
2017-04-18 04:17:58 +00:00
|
|
|
#include "apps/openmw/mwmp/Main.hpp"
|
2017-06-06 16:06:10 +00:00
|
|
|
#include "../PlayerProcessor.hpp"
|
2017-04-18 04:17:58 +00:00
|
|
|
#include "apps/openmw/mwmp/MechanicsHelper.hpp"
|
2017-04-16 07:00:25 +00:00
|
|
|
|
|
|
|
namespace mwmp
|
|
|
|
{
|
|
|
|
class ProcessorPlayerAttack : public PlayerProcessor
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
ProcessorPlayerAttack()
|
|
|
|
{
|
|
|
|
BPP_INIT(ID_PLAYER_ATTACK)
|
|
|
|
}
|
|
|
|
|
|
|
|
virtual void Do(PlayerPacket &packet, BasePlayer *player)
|
|
|
|
{
|
2017-04-23 22:46:27 +00:00
|
|
|
if (player != 0)
|
2017-06-27 08:34:32 +00:00
|
|
|
MechanicsHelper::processAttack(player->attack, static_cast<DedicatedPlayer*>(player)->getPtr());
|
2017-04-16 07:00:25 +00:00
|
|
|
}
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
#endif //OPENMW_PROCESSORPLAYERATTACK_HPP
|