コード例 #1
0
 public void Update(GameTime gameTime)
 {
     if (EventCounter > 0 && Events[0].Update(gameTime))
     {
         FactionEvent temp = Events[0];
         Events[0] = Events[EventCounter - 1];
         Events[EventCounter - 1] = temp;
         EventCounter--;
     }
 }
コード例 #2
0
        public Faction(int Team)
        {
            this.Team             = Team;
            MiningPlatformCounter = 2;

            Cards = new List <FactionCard>();

            for (int i = 0; i < MaxEvents; i++)
            {
                Events[i] = new FactionEvent();
            }
        }