-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathagent.h
More file actions
40 lines (30 loc) · 798 Bytes
/
agent.h
File metadata and controls
40 lines (30 loc) · 798 Bytes
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
30
31
32
33
34
35
36
37
38
39
40
#ifndef AGENT_H
#define AGENT_H
#include <memory>
#include <vector>
#include <string>
#include "types.h"
namespace TradeGame
{
class Agent
{
public:
virtual bool start() = 0; //returns true if it wants to trade.
/**
* Agent is defined as seller.
*/
virtual Bid inviteBid() = 0;
/**
* Returns the position in the vector.
* Receiving agent is defined as buyer.
* Return negative number to not partake.
*/
virtual int selectBestMatch(const std::vector<Bid>& bids) = 0;
virtual void addAssets(int dSilver, int dGold, int dPlatinum) = 0;
virtual Assets getAssets() const = 0;
virtual void setAssets(const Assets& assets) = 0;
virtual const std::string getName() const = 0;
virtual ~Agent(){}
};
}
#endif // AGENT_H