Exemple #1
0
        public override void blink(PiecePlaces piecePlaces)
        {
            XElement pit = world.getPitElement(pitname);

            foreach (XElement pitfall in pit.Elements("pitfall"))
            {
                string id = pitfall.Attribute("id").Value;
                int nr = Convert.ToInt16(id.Substring(1));

                if (piecePlaces.hasPiece(nr))
                {
                    blinkRect = getRect(pitfall);
                    blinkStart = currentGameTime.TotalGameTime;

                }
            }
        }
Exemple #2
0
        public override void blink(PiecePlaces piecePlaces)
        {
            XElement pit = world.getPitElement(pitname);

            foreach (XElement pitfall in pit.Elements("pitfall"))
            {
                string id = pitfall.Attribute("id").Value;
                int nr = Convert.ToInt16(id.Substring(1));

                if (piecePlaces.hasPiece(nr))
                {
                    blinkRect = getRect(pitfall);
                    blinkStart = currentGameTime.TotalGameTime;

                }
            }
        }
Exemple #3
0
 public GameScreen(EtGame theGame)
     : base(theGame)
 {
     piecePlaces = new PiecePlaces();
 }
Exemple #4
0
 public virtual void blink(PiecePlaces piecePlaces)
 {
 }
Exemple #5
0
 public GameScreen(EtGame theGame) : base(theGame)
 {
     piecePlaces = new PiecePlaces();
 }
Exemple #6
0
 public virtual void blink(PiecePlaces piecePlaces)
 {
 }