public ShiftStick(Game1 game, Vector2 pos, bool one_off, bool moveable)
     : base(game, pos)
 {
     position       = pos;
     this.keyUpHint = new KeyUpHint(game, new Vector2(position.X + 7, position.Y - 35),
                                    "ShiftStick_hint");
 }
 public ShiftStick(Game1 game, Vector2 pos, bool one_off, bool moveable)
     : base(game, pos)
 {
     position = pos;
     this.keyUpHint = new KeyUpHint(game, new Vector2(position.X + 7, position.Y - 35),
         "ShiftStick_hint");
 }
 public Switch(Game1 game, Vector2 pos)
     : base(game, pos)
 {
     position       = pos;
     this.keyUpHint = new KeyUpHint(game, new Vector2(position.X + 7, position.Y - 35),
                                    "Switch_hint");
 }
 public Switch(Game1 game, Vector2 pos)
     : base(game, pos)
 {
     position = pos;
     this.keyUpHint = new KeyUpHint(game, new Vector2(position.X + 7, position.Y - 35),
         "Switch_hint");
 }
 public Door(Game1 game, Vector2 position, string levelFileName)
     : base(game, position)
 {
     this.levelFileName = levelFileName;
     this.keyUpHint     = new KeyUpHint(game, new Vector2(position.X + 7, position.Y - 35),
                                        "Door_hint");
 }
 public Door(Game1 game, Vector2 position, string levelFileName)
     : base(game, position)
 {
     this.levelFileName = levelFileName;
     this.keyUpHint = new KeyUpHint(game, new Vector2(position.X + 7, position.Y - 35),
         "Door_hint");
 }
        public ShiftStick(Game1 game, XmlTextReader reader)
            : base(game, reader)
        {
            string pxStr = reader.GetAttribute("px");
            string pyStr = reader.GetAttribute("py");
            float px = float.Parse(pxStr);
            float py = float.Parse(pyStr);

            this.game = game;
            this.position = new Vector2(px, py);
            this.keyUpHint = new KeyUpHint(game, new Vector2(px + 7, py - 35),
                this.id + "hint");
        }
        public Switch(Game1 game, XmlTextReader reader)
            : base(game, reader)
        {
            string pxStr = reader.GetAttribute("px");
            string pyStr = reader.GetAttribute("py");
            float  px    = float.Parse(pxStr);
            float  py    = float.Parse(pyStr);

            this.game      = game;
            this.position  = new Vector2(px, py);
            this.keyUpHint = new KeyUpHint(game, new Vector2(px + 7, py - 35),
                                           this.id + "hint");
        }
        public Mirror(Game1 game, XmlTextReader reader)
            : base(game, reader)
        {
            string pxStr2 = reader.GetAttribute("px");
            string pyStr2 = reader.GetAttribute("py");
            string normalAngleStr = reader.GetAttribute("normalAngle");

            float px2 = float.Parse(pxStr2);
            float py2 = float.Parse(pyStr2);
            if (normalAngleStr != null)
                this.normalAngle = float.Parse(normalAngleStr);

            this.game = game;
            this.position = new Vector2(px2, py2);
            keyUpHint = new KeyUpHint(game, new Vector2(px2 + 5, py2 - 15), this.id + "hint");
        }
        public Door(Game1 game, XmlTextReader reader)
            : base(game, reader)
        {
            string pxStr = reader.GetAttribute("px");
            string pyStr = reader.GetAttribute("py");
            this.levelFileName = reader.GetAttribute("levelFileName");
            this.levelName = reader.GetAttribute("levelName");
            this.bindingId = reader.GetAttribute("bindingId");

            float px = float.Parse(pxStr);
            float py = float.Parse(pyStr);

            this.game = game;
            this.position = new Vector2(px, py);
            this.keyUpHint = new KeyUpHint(game, new Vector2(px + 7, py - 35),
                this.id + "hint");
        }
        public Door(Game1 game, XmlTextReader reader)
            : base(game, reader)
        {
            string pxStr = reader.GetAttribute("px");
            string pyStr = reader.GetAttribute("py");

            this.levelFileName = reader.GetAttribute("levelFileName");
            this.levelName     = reader.GetAttribute("levelName");
            this.bindingId     = reader.GetAttribute("bindingId");

            float px = float.Parse(pxStr);
            float py = float.Parse(pyStr);

            this.game      = game;
            this.position  = new Vector2(px, py);
            this.keyUpHint = new KeyUpHint(game, new Vector2(px + 7, py - 35),
                                           this.id + "hint");
        }
Esempio n. 12
0
        public Mirror(Game1 game, XmlTextReader reader)
            : base(game, reader)
        {
            string pxStr2         = reader.GetAttribute("px");
            string pyStr2         = reader.GetAttribute("py");
            string normalAngleStr = reader.GetAttribute("normalAngle");

            float px2 = float.Parse(pxStr2);
            float py2 = float.Parse(pyStr2);

            if (normalAngleStr != null)
            {
                this.normalAngle = float.Parse(normalAngleStr);
            }

            this.game     = game;
            this.position = new Vector2(px2, py2);
            keyUpHint     = new KeyUpHint(game, new Vector2(px2 + 5, py2 - 15), this.id + "hint");
        }