aboutsummaryrefslogtreecommitdiff
path: root/Feature.h
blob: c1f65b597e3fd6890bed08feb6dc5b1053684e5a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#pragma once
#include <vector>

class Player;
class Unit;
class Feature
{

protected:
	bool enabled = true;
public:
	virtual void LoadConfig();
	virtual void SaveConfig();
	virtual void OnInitialise();
	virtual void OnGameStart();
	virtual void OnTurn();
	virtual void OnUnitCreated(Unit* unit);
	virtual void OnShutdown();

	virtual void OnDraw();
	virtual void OnMenuMainWindow();
	virtual void OnMenuPlayerTreenode(Player* player, int playerIndex);


	virtual void OnPlayerIteration(Player* player, int playerIndex);
	virtual void OnUnitIteration(Unit* unit, Player* player, int playerIndex);

	virtual void OnNeutralUnit(Unit* unit);
};