Exemplo n.º 1
0
        protected void SpawnEntity(IVisionResult visionResult, ref StepSummary summary)
        {
            Entity spawned = _entityFactory.Create(GetEntityIdToSpawn(), this.ClanInfo);

            summary.AddSpawnedEntityInfo(spawned);

            visionResult.GetRandomFreeTile().SetAiEntity(spawned);
            _nextSpawnCounter = 0;
        }
Exemplo n.º 2
0
        private void TransformBuilderIntoOutpost(IVisionResult visionResult, ref StepSummary summary)
        {
            Entity buildedOutpost = _entityFactory.Create(EntityId.Outpost, this.ClanInfo);

            summary.AddSpawnedEntityInfo(buildedOutpost);

            Tile transformTile = OccupiedTile;

            this.ForceKill();
            transformTile.SetAiEntity(buildedOutpost);
        }