21 lines
616 B
Python
21 lines
616 B
Python
import enum
|
|
import ztime
|
|
import action
|
|
from defs import STATS
|
|
import SchoolActionAgent
|
|
|
|
# Runs Every Tick!
|
|
def tick_decisionsys(myagent, curtime):
|
|
myagent.get_action_agent().update(curtime)
|
|
pass
|
|
|
|
|
|
# Runs at the start
|
|
def make_decisionsys(myagent):
|
|
# Set up the agent's action agent. This is later called to update
|
|
# The modulalarity here is that the following line can be replaced with any other action agent
|
|
# and this will drive the agents actions accordingly
|
|
myagent.set_action_agent(SchoolActionAgent.SchoolActionAgent(myagent, STATS))
|
|
myagent.get_action_agent().stat_init()
|
|
pass
|