コード例 #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
ファイル: GameScreen.cs プロジェクト: jterweeme/xnaet
 public GameScreen(EtGame theGame)
     : base(theGame)
 {
     piecePlaces = new PiecePlaces();
 }
コード例 #4
0
ファイル: Pit.cs プロジェクト: jterweeme/xnaet
 public virtual void blink(PiecePlaces piecePlaces)
 {
 }
コード例 #5
0
ファイル: GameScreen.cs プロジェクト: jterweeme/xnaet
 public GameScreen(EtGame theGame) : base(theGame)
 {
     piecePlaces = new PiecePlaces();
 }
コード例 #6
0
ファイル: Pit.cs プロジェクト: jterweeme/xnaet
 public virtual void blink(PiecePlaces piecePlaces)
 {
 }