switch ( style )
{
case ENoWall:
{
//just the ceiling
if ( ceilingTex != null ) allWalls.add( new Wall( Others.EFloor1x1, new LibVertex( x, y, 2.5f ), angle + 180.0f, Scalation.ENone, Invert.ENo, WallCollidable.EYes, WallAction.ENone, WallClimbable.ENo, DrawMethod.EAlwaysDraw, ceilingTex, null, 0, WallHealth.EUnbreakale, null, null ) );
break;
}
case ESolidWall:
{
if ( wallTex != null ) allWalls.add( new Wall( Others.EWall1Solid, new LibVertex( x, y, 0.0f ), angle, Scalation.ENone, Invert.ENo, WallCollidable.EYes, WallAction.ENone, WallClimbable.ENo, DrawMethod.EAlwaysDraw, wallTex, null, 0, WallHealth.EUnbreakale, null, null ) );
if ( ceilingTex != null ) allWalls.add( new Wall( Others.EFloor1x1, new LibVertex( x, y, 2.5f ), angle + 180.0f, Scalation.ENone, Invert.ENo, WallCollidable.EYes, WallAction.ENone, WallClimbable.ENo, DrawMethod.EAlwaysDraw, ceilingTex, null, 0, WallHealth.EUnbreakale, null, null ) );
break;
}
case EWindows:
{
if ( wallTex != null ) allWalls.add( new Wall( Others.EWall1WindowSocket, new LibVertex( x, y, 0.0f ), angle, Scalation.ENone, Invert.ENo, WallCollidable.EYes, WallAction.ENone, WallClimbable.ENo, DrawMethod.EAlwaysDraw, wallTex, null, 0, WallHealth.EUnbreakale, null, null ) );
if ( wallTex != null ) allWalls.add( new Wall( Others.EWall1WindowGlass, new LibVertex( x, y, 0.0f ), angle, Scalation.ENone, Invert.ENo, WallCollidable.EYes, WallAction.ENone, WallClimbable.ENo, DrawMethod.EAlwaysDraw, WallTex.EGlass1, null, 0, WallHealth.EGlass, null, null ) );
if ( ceilingTex != null ) allWalls.add( new Wall( Others.EFloor1x1, new LibVertex( x, y, 2.5f ), angle + 180.0f, Scalation.ENone, Invert.ENo, WallCollidable.EYes, WallAction.ENone, WallClimbable.ENo, DrawMethod.EAlwaysDraw, ceilingTex, null, 0, WallHealth.EUnbreakale, null, null ) );
break;
}
case EWindowsAndCeilingWindows:
{
if ( wallTex != null ) allWalls.add( new Wall( Others.EWall1WindowSocket, new LibVertex( x, y, 0.0f ), angle, Scalation.ENone, Invert.ENo, WallCollidable.EYes, WallAction.ENone, WallClimbable.ENo, DrawMethod.EAlwaysDraw, wallTex, null, 0, WallHealth.EUnbreakale, null, null ) );
if ( wallTex != null ) allWalls.add( new Wall( Others.EWall1WindowGlass, new LibVertex( x, y, 0.0f ), angle, Scalation.ENone, Invert.ENo, WallCollidable.EYes, WallAction.ENone, WallClimbable.ENo, DrawMethod.EAlwaysDraw, WallTex.EGlass1, null, 0, WallHealth.EGlass, null, null ) );
if ( ceilingTex != null ) allWalls.add( new Wall( Others.EFloor1x1, new LibVertex( x, y, 2.5f ), angle + 180.0f, Scalation.ENone, Invert.ENo, WallCollidable.EYes, WallAction.ENone, WallClimbable.ENo, DrawMethod.EAlwaysDraw, WallTex.EGlass1, null, 0, WallHealth.EGlass, null, null ) );
break;
}
}
}