add: Agent, ProxyMethod, LoadingScene

This commit is contained in:
h z
2025-02-11 15:07:41 +00:00
parent aea9059e16
commit f7da4ee8bb
9 changed files with 105 additions and 7 deletions

View 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;
}
}