示例#1
0
 public static Wall BuildWallAtX(float posX, float platformLevel, Size wallSize, Wall.Colors wallColor, ref MapModel map)
 {
     return BuildWall(new Pointf(posX, GetPlatformYAtLevel(platformLevel, ref map)), wallSize, wallColor, ref map);
 }
示例#2
0
 public static Wall BuildWallAtX(float posX, float platformLevel, Size wallSize, Wall.Colors wallColor)
 {
     var temp = GetMap();
     return BuildWallAtX(posX, platformLevel, wallSize, wallColor, ref temp);
 }
示例#3
0
 public static Wall BuildWall(float column, float platformLevel, Size wallSize, Wall.Colors wallColor, ref MapModel map)
 {
     return BuildWall(GetPointForColumnAndLevel(column, platformLevel, ref map), wallSize, wallColor, ref map);
 }
示例#4
0
 public static Wall BuildWall(float column, float platformLevel, Size wallSize, Wall.Colors wallColor)
 {
     var temp = GetMap();
     return BuildWall(column, platformLevel, wallSize, wallColor, ref temp);
 }
示例#5
0
 public static Wall BuildWall(Pointf wallPosition, Size wallSize, Wall.Colors wallColor)
 {
     var temp = GetMap();
     return BuildWall(wallPosition, wallSize, wallColor, ref temp);
 }
示例#6
0
 public static Wall BuildWall(Pointf wallPosition, Size wallSize, Wall.Colors wallColor, ref MapModel map)
 {
     Wall wall = new Wall(map.Game, new Pointf(wallPosition.X, wallPosition.Y), new Size(wallSize.Width, wallSize.Height), wallColor);
     map.AddComponent(wall);
     return wall;
 }
示例#7
0
 public static Wall BuildPlatform(float column, float platformLevel, float columnSpan, Wall.Colors color)
 {
     var temp = GetMap();
     return BuildPlatform(column, platformLevel, columnSpan, color, ref temp);
 }
示例#8
0
 public static Wall BuildPlatform(float column, float platformLevel, float columnSpan, Wall.Colors color, ref MapModel map)
 {
     return BuildWall(GetPointForColumnAndLevel(column, platformLevel, ref map), new Size(columnSpan * DEFAULT_PLATFORM_WIDTH, OFFSET), color, ref map);
 }
示例#9
0
        public static void BuildMapBorders(ref MapModel map)
        {
            // top wall
            Wall wall = new Wall(map.Game, new Pointf(0, 0), new Size(map.mSize.Width, OFFSET), Wall.Colors.WHITE);
            map.AddComponent(wall);

            // left wall
            wall = new Wall(map.Game, new Pointf(0, 0), new Size(OFFSET, map.mSize.Height), Wall.Colors.WHITE);
            map.AddComponent(wall);

            // bottom wall
            wall = new Wall(map.Game, new Pointf(0, map.mSize.Height - OFFSET), new Size(map.mSize.Width, OFFSET), Wall.Colors.WHITE);
            map.AddComponent(wall);

            // right wall
            wall = new Wall(map.Game, new Pointf(map.mSize.Width - OFFSET, 0), new Size(OFFSET, map.mSize.Height), Wall.Colors.WHITE);
            map.AddComponent(wall);
        }