コード例 #1
0
 /** <summary> Constructs the default maze block. </summary> */
 public MazeBlock(MazeWalls walls, bool empty = false)
 {
     this.Walls = walls;
     this.Empty = empty;
 }
コード例 #2
0
        //=========== READING ============
        #region Reading

        /**<summary>Reads the maze tile.</summary>*/
        public void Read(BinaryReader reader)
        {
            this.X     = reader.ReadSByte();
            this.Y     = reader.ReadSByte();
            this.Walls = (MazeWalls)reader.ReadUInt16();
        }
コード例 #3
0
        //========= CONSTRUCTORS =========
        #region Constructors

        /** <summary> Constructs the default maze block. </summary> */
        public MazeBlock()
        {
            this.Walls = MazeWalls.All;
            this.Empty = true;
        }
コード例 #4
0
 /**<summary>Constructs the default maze tile.</summary>*/
 public MazeTile(int x, int y, MazeWalls walls)
 {
     this.X     = (sbyte)x;
     this.Y     = (sbyte)y;
     this.Walls = walls;
 }
コード例 #5
0
        //========= CONSTRUCTORS =========
        #region Constructors

        /**<summary>Constructs the default maze tile.</summary>*/
        public MazeTile()
        {
            this.X     = 0;
            this.Y     = 0;
            this.Walls = MazeWalls.All;
        }
コード例 #6
0
        //=========== READING ============
        #region Reading

        /**<summary>Reads the maze tile.</summary>*/
        public void Read(BinaryReader reader)
        {
            X     = reader.ReadSByte();
            Y     = reader.ReadSByte();
            Walls = (MazeWalls)reader.ReadUInt16();
        }
コード例 #7
0
 /**<summary>Constructs the default maze tile.</summary>*/
 public MazeTile(int x, int y, MazeWalls walls)
 {
     X     = (sbyte)x;
     Y     = (sbyte)y;
     Walls = walls;
 }
コード例 #8
0
        //========= CONSTRUCTORS =========
        #region Constructors

        /**<summary>Constructs the default maze tile.</summary>*/
        public MazeTile()
        {
            X     = 0;
            Y     = 0;
            Walls = MazeWalls.All;
        }