31 lines
551 B
C++
31 lines
551 B
C++
/*
|
|
* ITool.h
|
|
*
|
|
* Created on: Dec 3, 2016
|
|
* Author: tibi
|
|
*/
|
|
|
|
#ifndef COMPONENTS_ITEMS_IPLAYERACTION_H_
|
|
#define COMPONENTS_ITEMS_IPLAYERACTION_H_
|
|
|
|
#include <model/Direction.h>
|
|
|
|
namespace farmlands {
|
|
namespace components {
|
|
namespace items {
|
|
|
|
class IPlayerAction
|
|
{
|
|
public:
|
|
virtual ~IPlayerAction() { }
|
|
virtual void performAction(float playerX, float playerY, model::Direction) = 0;
|
|
|
|
float actionCost;
|
|
};
|
|
|
|
} /* namespace items */
|
|
} /* namespace components */
|
|
} /* namespace farmlands */
|
|
|
|
#endif /* COMPONENTS_ITEMS_IPLAYERACTION_H_ */
|