Rehti MMORPG  1.0.0
Rehti MMORPG is a free and open source MMORPG game.
PickUpAction.hpp
Go to the documentation of this file.
1 #pragma once
2 
3 #include "MoveAction.hpp"
4 
8 class PickUpAction : public MoveAction
9 {
10 public:
11  PickUpAction(std::chrono::system_clock::time_point startTime, Coordinates target, std::shared_ptr<Entity> pEntity, int targetItemId);
12 
13  ~PickUpAction() = default;
14 
15  void act();
16 
17 private:
19 };
Action used for moving.
Definition: MoveAction.hpp:12
Special case of MoveAction where, at the end, the actor picks up an item.
Definition: PickUpAction.hpp:9
int targetItemIdM
Definition: PickUpAction.hpp:18
PickUpAction(std::chrono::system_clock::time_point startTime, Coordinates target, std::shared_ptr< Entity > pEntity, int targetItemId)
Definition: PickUpAction.cpp:5
void act()
Movement functionality, which finds the shortest path to target location and performs the movement th...
Definition: PickUpAction.cpp:8
~PickUpAction()=default
Struct for coordinates.
Definition: Coordinates.hpp:7