Exemple #1
0
        public WaveInfoBox(XmlCreepWave Wave, List<GuiItem> Garbage)
            : base("WaveInfoBox")
        {
            this.Wave = Wave;
            this.Garbage = Garbage;
            Width = 300;
            Height = 300;

            Background = new BackgroundItem(Color.WhiteSmoke);
            Background.Width = Width;
            Background.Height = Height;

            TimeBar = new Rectangle(new Point(10,220),new Size(Width-20,22));
            TimeBarBorder = new Box(TimeBar.Location, TimeBar.Size);

            labelHealth = new LabelItem();
            labelResist = new LabelItem();
            labelWeakness = new LabelItem();
            labelNumbers = new LabelItem();
            labelName = new LabelItem();
            labelTips = new LabelItem();
            labelTitle = new LabelItem("Next Wave");
        }
        public XmlCreepWave GetNextWaveInfo()
        {
            XmlCreepWave WaveInfo = new XmlCreepWave();
            if (State == GameState.NoAttack)
            {
                WaveInfo = CreepWaves.Wave[Wave - 1];
            }

            return WaveInfo;
        }