1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-01-24 03:47:18 +02:00
vcmi/include/vcmi/Player.h
Konstantin ee489f18d2 vcmi: PlayerState is now an Entity
This will reduce code duplication a little bit.
2023-04-05 01:22:04 +03:00

29 lines
563 B
C++

/*
* Player.h, part of VCMI engine
*
* Authors: listed in file AUTHORS in main folder
*
* License: GNU General Public License v2.0 or later
* Full text of license available in license.txt file, in main folder
*
*/
#pragma once
#include "Entity.h"
VCMI_LIB_NAMESPACE_BEGIN
class PlayerColor;
class TeamID;
class IBonusBearer;
class DLL_LINKAGE Player : public EntityWithBonuses<PlayerColor>
{
public:
virtual TeamID getTeam() const = 0;
virtual bool isHuman() const = 0;
virtual int getResourceAmount(int type) const = 0;
};
VCMI_LIB_NAMESPACE_END