예제 #1
0
파일: XmlPit.cs 프로젝트: jterweeme/xnaet
        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;

                }
            }
        }
예제 #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;

                }
            }
        }
예제 #3
0
 public GameScreen(EtGame theGame)
     : base(theGame)
 {
     piecePlaces = new PiecePlaces();
 }
예제 #4
0
파일: Pit.cs 프로젝트: jterweeme/xnaet
 public virtual void blink(PiecePlaces piecePlaces)
 {
 }
예제 #5
0
 public GameScreen(EtGame theGame) : base(theGame)
 {
     piecePlaces = new PiecePlaces();
 }
예제 #6
0
파일: Pit.cs 프로젝트: jterweeme/xnaet
 public virtual void blink(PiecePlaces piecePlaces)
 {
 }