mirror of
https://github.com/vcmi/vcmi.git
synced 2025-01-24 03:47:18 +02:00
ee489f18d2
This will reduce code duplication a little bit.
29 lines
563 B
C++
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
|