示例#1
0
        public BBlock(string name, BBlockType type, RectangleF texturePosition)
        {
            this.name            = name;
            this.type            = type;
            this.texturePosition = texturePosition;
            posX = 0;
            posY = 0;

            solid  = false;
            ground = false;

            switch (type)
            {
            case BBlockType.Empty:
                solid = true;
                break;

            case BBlockType.Ground:
                ground = true;
                break;

            case BBlockType.Solid:
                solid = true;
                break;

            default:
                solid  = false;
                ground = false;
                break;
            }
        }
示例#2
0
 public BBlockTemplate(string name, BBlockType type, RectangleF texturePosition)
 {
     this.name            = name;
     this.type            = type;
     this.texturePosition = texturePosition;
 }