示例#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)
 {
 }