add: Agent, ProxyMethod, LoadingScene
This commit is contained in:
28
src/Agents/AgentDecisionMaker.cs
Normal file
28
src/Agents/AgentDecisionMaker.cs
Normal file
@@ -0,0 +1,28 @@
|
||||
namespace Polonium.Agents;
|
||||
|
||||
public abstract class AgentDecisionMaker<TAgent, TAgentDecisionMaker, TAgentKnowledge>
|
||||
where TAgent : Agent<TAgent, TAgentDecisionMaker, TAgentKnowledge>
|
||||
where TAgentDecisionMaker : AgentDecisionMaker<TAgent, TAgentDecisionMaker, TAgentKnowledge>, new()
|
||||
where TAgentKnowledge : AgentKnowledge<TAgent, TAgentDecisionMaker, TAgentKnowledge>, new()
|
||||
{
|
||||
|
||||
public enum DecisionMakerType
|
||||
{
|
||||
None = 0,
|
||||
Player = 1,
|
||||
Computer = 2,
|
||||
Global = 3,
|
||||
}
|
||||
|
||||
public DecisionMakerType Type { get; init; }
|
||||
|
||||
public AgentDecisionMaker()
|
||||
{
|
||||
Type = DecisionMakerType.Computer;
|
||||
}
|
||||
|
||||
public AgentDecisionMaker(DecisionMakerType type)
|
||||
{
|
||||
Type = type;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user