public SimAgent AddAgent(SimAgentType agentType, SimPoint position, SimUnit owner, SimResourceBinCollection resources, string searchTarget)
    {
        SimAgent agent = new SimAgent();

        agent.Init(agentType, nextAgentId++, position, owner, resources, searchTarget);

        agents.Add(agent);

        boxListener.OnAgentAdded(agent);

        return(agent);
    }
    public SimUnit AddUnit(SimUnitType unitType, SimPoint position)
    {
        SimUnit unit = new SimUnit();

        unit.Init(unitType, nextUnitId++, position);

        units.Add(unit);

        boxListener.OnUnitAdded(unit);

        return(unit);
    }