Exemple #1
0
 public TurnInformation(
     TerrainType terrainType,
     PastTurnDigest pastTurn,
     AntMindset mindset,
     List <PheromoneDigest> pheromones,
     Dictionary <HexDirection, List <PheromoneDigest> > adjacentPheromoneGroups,
     Value energy,
     Value hp,
     Value carriedFood,
     AnalyseReport analyseReport,
     CommunicateReport communicateReport,
     List <EventInput> eventInputs,
     int id)
 {
     this.terrainType             = terrainType;
     this.pastTurn                = pastTurn;
     this.mindset                 = mindset;
     this.pheromones              = pheromones;
     this.adjacentPheromoneGroups = adjacentPheromoneGroups;
     this.energy            = energy;
     this.hp                = hp;
     this.carriedFood       = carriedFood;
     this.analyseReport     = analyseReport;
     this.communicateReport = communicateReport;
     this.eventInputs       = eventInputs;
     this.id                = id;
 }
Exemple #2
0
    public virtual void Init(Team team, Vector2Int gameCoordinates, Color color)
    {
        SuperStart();

        this.team               = team;
        this.gameCoordinates    = gameCoordinates;
        this.displayCoordinates = gameCoordinates;
        this.teamColor          = color;

        pastTurn    = null;
        eventInputs = new List <EventInput>();
    }