Package de.christopherstock.shooter.g3d.wall

Examples of de.christopherstock.shooter.g3d.wall.Wall


                        WallTex.EGlass1, WallHealth.ESolidGlass, WallAction.EDoorSlideRight,
                        DoorStyle.ENoDoor, 0,
                        WALL_OFFICE, CARPET_OFFICE, WallTex.ECeiling1,
                        new Wall[]
                        {
                            new Wall(   Others.EChairOffice1,   new LibVertex1.0f,   1.0f,   0.0f    ), 255.0f,  Scalation.ENone,        Invert.ENo,  WallCollidable.EYes, WallAction.ENone,   WallClimbable.ENo, DrawMethod.EAlwaysDraw, WallTex.ELeather1,     new LibTexture[] { WallTex.EChrome2, },   0, WallHealth.ESolidWood, FXSize.ESmall, null  ),
                            new Sprite( Others.ESprite1,        new LibVertex1.25f6.5f,   0.0f    ),          Scalation.EAddHalf,     WallCollidable.EYes, WallTex.EPlant2 ),
                            new Wall(   Others.EWhiteboard1,    new LibVertex2.5f,   12.0f0.7f    ), 90.0f,   Scalation.EDouble,      Invert.ENo,  WallCollidable.EYes, WallAction.ENone,   WallClimbable.ENo, DrawMethod.EAlwaysDraw, WallTex.EWhiteboard1,  null, 0,               WallHealth.ESolidWood, FXSize.ESmall, null  ),
                            new Wall(   Others.EPoster1,        new LibVertex4.0f,   12.0f0.7f    ), 90.0f,   Scalation.EAddHalf,     Invert.ENo,  WallCollidable.EYes, WallAction.ENone,   WallClimbable.ENo, DrawMethod.EAlwaysDraw, WallTex.EPoster1,      null, 0,               WallHealth.ESolidWood, FXSize.ESmall, null  ),
                            new Wall(   Others.ESofa1,          new LibVertex7.0f,   2.0f,   0.0f    ), 0.0f,    Scalation.ENone,        Invert.ENo,  WallCollidable.EYes, WallAction.ENone,   WallClimbable.ENo, DrawMethod.EAlwaysDraw, WallTex.ELeather2,     new LibTexture[] { WallTex.ETest, }, 0, WallHealth.EFurniture, FXSize.ELarge, null  ),
                        },
                        null,
                        null,
                        null,
                        new int[] { 5, }
                    ),

                    //desk office
                    ShooterWallCollection.createDeskOffice( 2.0f, 3.5f, 2.5f, 270.0f ),


                    //desk lab
                    ShooterWallCollection.createDeskLab( 5.0f, 7.5f, 2.5f, 270.0f ),
                },

                //1st floor - storage
                new WallCollection[]
                {
                    //storage
                    ShooterWallCollection.createRoom
                    (
                        4.0f, 14.0f, 2.5f, 0.0f, 8, 8,
                        WallStyle.ESolidWall, WallStyle.EWindowsAndCeilingWindows, WallStyle.ESolidWall, WallStyle.EWindowsAndCeilingWindows,
                        WallTex.EGlass1, WallHealth.ESolidGlass, WallAction.EDoorSlideRight,
                        DoorStyle.ENoDoor, 0,
                        WALL_OFFICE, CARPET_OFFICE, WallTex.ECeiling1,
                        new Wall[]
                        {
                        },
                        null,
                        null,
                        new int[] { 1, },
                        new int[] { 1, }
                    ),

                    //shelves
                    ShooterWallCollection.createShelves( 11.0f, 15.5f, 2.5f, 70.0f  ),
                    ShooterWallCollection.createShelves( 11.0f, 18.0f, 2.5f, 90.0f  ),
                    ShooterWallCollection.createShelves( 11.0f, 20.5f, 2.5f, 100.0f ),

                    //box
                    new WallCollection
                    (
                        ShooterWallCollection.createCrate(      5.5f, 16.5f, 2.5f, 100.0f, Scalation.ETriple ),
                        new Wall[] { ShooterWallCollection.createCrate0.0f, 0.0f, 0.66f, 10.0f, Scalation.ETriple ), }
                    ),

                    //box
                    new WallCollection
                    (
                        ShooterWallCollection.createCrate(      6.5f, 18.5f, 2.5f, 90.0f, Scalation.ETriple ),
                        new Wall[] { ShooterWallCollection.createCrate0.0f, 0.0f, 0.66f, -10.0f, Scalation.ETriple ), }
                    ),
                },

                //1st floor - casino
                new WallCollection[]
                {
                    //hallway
                    ShooterWallCollection.createRoom
                    (
                        4.0f, 24.0f, 2.5f, 0.0f, 4, 4,
                        WallStyle.ESolidWall, WallStyle.ESolidWall, WallStyle.ENoWall, WallStyle.ESolidWall,
                        WallTex.EGlass1, WallHealth.ESolidGlass, WallAction.EDoorSlideRight,
                        DoorStyle.ENoDoor, 0,
                        WALL_OFFICE, CARPET_OFFICE, WallTex.ECeiling1,
                        new Wall[]
                        {
                        },
                        null,
                        null,
                        new int[] { 1, },
                        null
                    ),

                    //hallway
                    ShooterWallCollection.createRoom
                    (
                        4.0f, 38.0f, 2.5f, 0.0f, 4, 4,
                        WallStyle.ENoWall, WallStyle.ESolidWall, WallStyle.ESolidWall, WallStyle.ESolidWall,
                        WallTex.EGlass1, WallHealth.ESolidGlass, WallAction.EDoorSlideRight,
                        DoorStyle.ENoDoor, 0,
                        WALL_OFFICE, CARPET_OFFICE, WallTex.ECeiling1,
                        new Wall[]
                        {
                        },
                        null,
                        null,
                        null,
                        new int[] { 1, }
                    ),

                    //casino
                    ShooterWallCollection.createRoom
                    (
                        4.0f, 28.0f, 2.5f, 0.0f, 8, 10,
                        WallStyle.ESolidWall, WallStyle.ESolidWall, WallStyle.ESolidWall, WallStyle.EWindowsAndCeilingWindows,
                        WallTex.EGlass1, WallHealth.ESolidGlass, WallAction.EDoorSlideRight,
                        DoorStyle.ENoDoor, 0,
                        WALL_OFFICE, CARPET_OFFICE, WallTex.ECeiling1,
                        new Wall[]
                        {
                            new Wall(   Others.ESodaMachine1,   new LibVertex( 6.5f, 0.3f, 0.0f ), 270.0f, Scalation.ENone,   Invert.ENo,  WallCollidable.EYes, WallAction.ENone,   WallClimbable.ENo, DrawMethod.EAlwaysDraw, WallTex.ESodaMachine2, null, 0, WallHealth.EVendingMachine, FXSize.ELarge, SoundFg.EExplosion1 ),
                            new Wall(   Others.ESodaMachine1,   new LibVertex( 6.5f, 9.7f, 0.0f ), 90.0f,  Scalation.ENone,   Invert.ENo,  WallCollidable.EYes, WallAction.ENone,   WallClimbable.ENo, DrawMethod.EAlwaysDraw, WallTex.ESodaMachine3, null, 0, WallHealth.EVendingMachine, FXSize.ELarge, SoundFg.EExplosion1 ),
                            new Sprite( Others.ESprite1,        new LibVertex( 5.0f, 0.4f, 0.0f ), Scalation.EAddThird,   WallCollidable.EYes, WallTex.EPlant1 ),
                            new Sprite( Others.ESprite1,        new LibVertex( 5.0f, 9.6f, 0.0f ), Scalation.EAddThird,   WallCollidable.EYes, WallTex.EPlant1 ),


/*
 
View Full Code Here


                        DoorStyle.EAnchorDefault, 6,
                        WallTex.EBricks2, WallTex.ECarpet1, WallTex.ECeiling1,
                        new Wall[]
                        {
                            new Sprite( Others.ESprite1, new LibVertex( 5.5f, 0.75f, 0.0f ), Scalation.EAddThird,   WallCollidable.EYes, WallTex.EPlant1 ),
                            new Wall(   Others.ESodaMachine1,   new LibVertex( 7.5f, 0.5f0.0f ), 270.0f, Scalation.ENone,   Invert.ENo,  WallCollidable.EYes, WallAction.ENone,   WallClimbable.ENo, DrawMethod.EAlwaysDraw, WallTex.ESodaMachine2,   null, 0,         WallHealth.EVendingMachine, FXSize.ELarge, SoundFg.EExplosion1 ),

                            new Sprite( Others.ESprite1, new LibVertex( 8.0f, 3.0f0.0f ), Scalation.EAddHalf,   WallCollidable.EYes, WallTex.EPlant2 ),
                            new Sprite( Others.ESprite1, new LibVertex( 8.0f, 7.5f0.0f ), Scalation.EAddHalf,   WallCollidable.EYes, WallTex.EPlant1 ),
                            new Sprite( Others.ESprite1, new LibVertex( 8.0f, 12.5f, 0.0f ), Scalation.EAddHalf,   WallCollidable.EYes, WallTex.EPlant2 ),
                            new Wall(   Others.ESofa1,          new LibVertex( 8.5f, 10.0f, 0.0f ), 0.0f,   Scalation.ENone,   Invert.ENo,  WallCollidable.EYes, WallAction.ENone,   WallClimbable.ENo, DrawMethod.EAlwaysDraw, WallTex.EClothDarkRed, new LibTexture[] { WallTex.ETest, }, 0, WallHealth.EFurniture,      FXSize.ELarge, null                     ),
                            new Wall(   Others.ESofa1,          new LibVertex( 8.5f, 5.0f0.0f ), 0.0f,   Scalation.ENone,   Invert.ENo,  WallCollidable.EYes, WallAction.ENone,   WallClimbable.ENo, DrawMethod.EAlwaysDraw, WallTex.EClothDarkRed, new LibTexture[] { WallTex.ETest, }, 0, WallHealth.EFurniture,      FXSize.ELarge, null                     ),
                        },
                        null,
                        null,
                        null,
                        null
                    ),

                    //big office
                    ShooterWallCollection.createRoom
                    (
                        iOffsetX - 8.0f,   iOffsetY - 6.0f,   iOffsetZ + 2.5f,   0.0f,   8, 14,
                        WallStyle.EWindows, WallStyle.EWindowsAndCeilingWindows, WallStyle.EWindows, WallStyle.ENoWall,
                        WallTex.EGlass1, WallHealth.ESolidGlass, WallAction.EDoorSlideRight,
                        DoorStyle.ENoDoor, 0,
                        WallTex.EBricks2, WallTex.ECarpet1, WallTex.ECeiling1,
                        new Wall[]
                        {
                        },
                        null,
                        null,
                        null,
                        null
                    ),

                    //right hallway
                    ShooterWallCollection.createRoom
                    (
                        iOffsetX + 0.0f,   iOffsetY - 12.0f,   iOffsetZ + 2.5f,   0.0f,   46,
                        WallStyle.EWindowsAndCeilingWindows, WallStyle.ESolidWall, WallStyle.ENoWall, WallStyle.ENoWall,
                        WallTex.EGlass1, WallHealth.ESolidGlass, WallAction.EDoorSwingCounterClockwise,
                        DoorStyle.ENoDoor, 0,
                        WallTex.EBricks2, WallTex.ECarpet1, WallTex.ECeiling1,
                        null,
                        null,
                        null,
                        null,
                        null
                    ),

                    //small office
                    ShooterWallCollection.createRoom
                    (

                        iOffsetX + 4.0f,   iOffsetY + 10.0f,   iOffsetZ + 2.0f,   0.0f,   55,

                        WallStyle.ESolidWall, WallStyle.ESolidWall, WallStyle.ESolidWall, WallStyle.EWindowsAndCeilingWindows,
                        WallTex.EWood1, WallHealth.EUnbreakale, WallAction.EDoorSwingClockwise,
                        DoorStyle.EAnchorDefault, 2,
                        WallTex.EBricks2, WallTex.ECarpet1, WallTex.ECeiling1,
                        new Wall[]
                        {
                            new Sprite( Others.ESprite1, new LibVertex( 1.0f, 1.0f, 0.0f ), Scalation.EAddQuarter, WallCollidable.EYes, WallTex.EPlant2 ),
                            new Wall(   Others.EPoster1,        new LibVertex3.0f,   0.01f, 0.7f   ), 270.0f,  Scalation.EAddHalf,     Invert.ENo,  WallCollidable.EYes, WallAction.ENone,   WallClimbable.ENo, DrawMethod.EAlwaysDraw, WallTex.EPoster1,      null,                                   0, WallHealth.ESolidWood, FXSize.ESmall, null   ),
                            new Wall(   Others.EChairOffice1,   new LibVertex4.0f,   1.0f0.0f   ), 290.0f,  Scalation.ENone,        Invert.ENo,  WallCollidable.EYes, WallAction.ENone,   WallClimbable.ENo, DrawMethod.EAlwaysDraw, WallTex.ELeather1,     new LibTexture[] { WallTex.EChrome2, }, 0, WallHealth.ESolidWood, FXSize.ESmall, null   ),
                            new Article( Others.EWhiteboard1,  3.0f,   4.8f0.9f, 90.0f, Scalation.EAddThird, Invert.ENo, WallTex.EWhiteboard1, WallHealth.ESolidWood, FXSize.ESmall, null ),
                        },
                        null,
                        null,
                        null,
                        null
                    ),

                    //office desk ( must be a separate wallCollection! .. cannot be applied to small office?
                    new WallCollection
                    (
                        new Wall(       Others.EDeskOffice1,    new LibVertexiOffsetX + 7.5f,   iOffsetY + 10.0f,  iOffsetZ + 2.5f    ), 0.0f,   Scalation.ENone,        Invert.ENo, WallCollidable.EYes, WallAction.ENone,   WallClimbable.ENo, DrawMethod.EAlwaysDraw, WallTex.EWood1, new LibTexture[] { WallTex.EScreen2, }, 0, WallHealth.ESolidWood, FXSize.ESmall, null   ),
                        new Wall[]
                        {
                            new Wall(   Others.EKeyboard1,      new LibVertex-0.25f0.0f,   0.8f    ), 180.0f,    Scalation.ENone,        Invert.EYes, WallCollidable.EYes, WallAction.ENone,   WallClimbable.ENo, DrawMethod.EAlwaysDraw, WallTex.EWood1, new LibTexture[] { WallTex.EScreen2, }, 0, WallHealth.EElectricalDevice, FXSize.ESmall, null   ),
                            new Wall(   Others.EScreen1,        new LibVertex-0.75f0.0f0.8f    ), 180.0f,    Scalation.ENone,        Invert.EYes, WallCollidable.EYes, WallAction.ENone,   WallClimbable.ENo, DrawMethod.EAlwaysDraw, WallTex.EWood1,  new LibTexture[] { WallTex.EScreen2, }, 0, WallHealth.EElectricalDevice, FXSize.ESmall, null   ),
                        }
                    ),

                    //left hallway
                    ShooterWallCollection.createRoom
                    (
                        iOffsetX + 0.0f,   iOffsetY + 8.0f,   iOffsetZ + 2.5f,   0.0f,   45,
                        WallStyle.ENoWall, WallStyle.ESolidWall, WallStyle.ENoWall, WallStyle.ENoWall,
                        WallTex.EGlass1, WallHealth.ESolidGlass, WallAction.EDoorSwingCounterClockwise,
                        DoorStyle.ENoDoor, 0,
                        WallTex.EBricks2, WallTex.ECarpet1, WallTex.ECeiling1,
                        null,
                        null,
                        null,
                        null,
                        null
                    ),
/*
                    //left hallway around corner
                    ShooterWallCollection.createRoom
                    (
                        x + 4.0f,   y + 13.0f,   z + 2.5f,   0.0f,   12,  4,
                        WallStyle.ESolidWall, WallStyle.ENoWall, WallStyle.EWindowsAndCeilingWindows, WallStyle.ENoWall,
                        WallTex.EGlass1, WallHealth.ESolidGlass, WallAction.EDoorSwingCounterClockwise,
                        DoorStyle.ENoDoor, 0,
                        WallTex.EBricks2, WallTex.ECarpet1, WallTex.ECeiling1,
                        null
                    ),
*/
/*
                    //next level's hallway
                    ShooterWallCollection.createRoom
                    (
                        x + 16.0f,   y + 13.0f,   z + 2.5f,   0.0f,   4,  4,
                        WallStyle.ENoWall, WallStyle.ENoWall, WallStyle.EWindowsAndCeilingWindows, WallStyle.ESolidWall,
                        WallTex.EGlass1, WallHealth.ESolidGlass, WallAction.EDoorSwingCounterClockwise,
                        DoorStyle.ENoDoor, 0,
                        WallTex.EBricks2, WallTex.ECarpet1, WallTex.ECeiling1,
                        null
                    ),
*/
/*
                    //next level's hallway
                    ShooterWallCollection.createRoom
                    (
                        x + 16.0f,   y + 9.0f,   z + 2.5f,   0.0f,   4,  4,
                        WallStyle.ENoWall, WallStyle.ENoWall, WallStyle.ENoWall, WallStyle.ESolidWall,
                        WallTex.EGlass1, WallHealth.ESolidGlass, WallAction.EDoorSwingCounterClockwise,
                        DoorStyle.ENoDoor, 0,
                        WallTex.EBricks2, WallTex.ECarpet1, WallTex.ECeiling1,
                        null
                    ),
*/
/*
                    //storage room
                    ShooterWallCollection.createRoom
                    (
                        x + 4.0f,   y - 10.0f,   z + 2.5f,   0.0f,   5,  8,
                        WallStyle.ESolidWall, WallStyle.ESolidWall, WallStyle.ESolidWall, WallStyle.EWindowsAndCeilingWindows,
                        WallTex.EGlass1, WallHealth.ESolidGlass, WallAction.EDoorSwingClockwise,
                        DoorStyle.EAnchorDefault, 4,
                        WallTex.EBricks2, WallTex.ECarpet1, WallTex.ECeiling1,
                        new Wall[]
                        {
                        }
                    ),

                    //shelves
                    ShooterWallCollection.createShelves( x + 8.0f,   y - 12.5f,  z + 2.5f, 70.0f  ),
                    ShooterWallCollection.createShelves( x + 8.0f,   y - 10.0f, z + 2.5f, 90.0f  ),
                    ShooterWallCollection.createShelves( x + 8.0f,   y - 7.5f,   z + 2.5f, 110.0f ),
*/
/*
                    //staircase
                    ShooterWallCollection.createStaircase(      x + -34.0f,  y + -1.0f, z + 0.0f, true, false, 90.0f   ),
*/
                },

                //EPlayersOffices2
                new WallCollection[]
                {
/*
                    //ground
                    ShooterWallCollection.createGround( WallTex.EGrass1, -0.01f ),
*/
                    //normal office
                    ShooterWallCollection.createRoom
                    (
                        iOffsetX + 6.0f,   iOffsetY + 2.0f,   iOffsetZ + 0.0f,   90.0f,   55,
                        WallStyle.ESolidWall, WallStyle.ESolidWall, WallStyle.ESolidWall, WallStyle.EWindowsAndCeilingWindows,
                        WallTex.EGlass1, WallHealth.ESolidGlass, WallAction.EDoorSlideRight,
                        DoorStyle.EAnchorDefault, 2,
                        WallTex.EBricks2, WallTex.ECarpet1, WallTex.ECeiling1,
                        new Wall[]
                        {
                            new Sprite( Others.ESprite1,        new LibVertex1.0f,   1.0f0.0f   ),          Scalation.EAddQuarter, WallCollidable.EYes, WallTex.EPlant2 ),
                            new Wall(   Others.EPoster1,        new LibVertex3.0f,   0.01f, 0.7f   ), 270.0f,  Scalation.EAddHalf,     Invert.ENo,  WallCollidable.EYes, WallAction.ENone,   WallClimbable.ENo, DrawMethod.EAlwaysDraw, WallTex.EPoster1,      null, 0,             WallHealth.ESolidWood, FXSize.ESmall, null   ),
                            new Wall(   Others.EChairOffice1,   new LibVertex4.0f,   1.0f0.0f   ), 290.0f,  Scalation.ENone,        Invert.ENo,  WallCollidable.EYes, WallAction.ENone,   WallClimbable.ENo, DrawMethod.EAlwaysDraw, WallTex.ELeather1,     new LibTexture[] { WallTex.EChrome2, }, 0, WallHealth.ESolidWood, FXSize.ESmall, null   ),
                            new Wall(   Others.EWhiteboard1,    new LibVertex3.0f,   4.8f0.9f   ), 90.0f,   Scalation.EAddThird,    Invert.ENo,  WallCollidable.EYes, WallAction.ENone,   WallClimbable.ENo, DrawMethod.EAlwaysDraw, WallTex.EWhiteboard1,  null, 0,             WallHealth.ESolidWood, FXSize.ESmall, null   ),
                        },
                        null,
                        null,
                        null,
                        null
View Full Code Here

        private                         float                   iAlphaText                      = 0.0f;

        private MainStateIntroLogo()
        {
            iLogoY      = START_APPEARING_Y;
            iLogo       = new Wall( Menu.ELogoIpco, new LibVertex( 0.0f, 0.0f, 0.0f ), 0.0f, Scalation.ENone, Invert.ENo, Wall.WallCollidable.EYes,  Wall.WallAction.ENone, WallClimbable.ENo, DrawMethod.EAlwaysDraw, null, null, 0, WallHealth.EUnbreakale, null, null );
            iTextTop    = LibGLImage.getFromString( "Brought to you by the members of", Fonts.EIntro, LibColors.EGreyDark.colARGB, null, null, ShooterDebug.glImage );
            iTextBottom = LibGLImage.getFromString( "The International PC Owners",      Fonts.EIntro, LibColors.EGreyDark.colARGB, null, null, ShooterDebug.glImage );
        }
View Full Code Here

            return new WallCollection
            (
                //environment ( large meshes ) and bounds
                new Wall[]
                {
                    new Wall(   Others.EFloor100x100,  new LibVertex0.0f,    0.0f,    z     ), 0.0f,   Scalation.ENone,  Invert.ENo, WallCollidable.EYes,  WallAction.ENone, WallClimbable.EYes, DrawMethod.EAlwaysDraw, tex, null, 0, WallHealth.EUnbreakale, null, null ),
                    new Wall(   Others.EFloor100x100,  new LibVertex0.0f,    -100.0f, z     ), 0.0f,   Scalation.ENone,  Invert.ENo, WallCollidable.EYes,  WallAction.ENone, WallClimbable.EYes, DrawMethod.EAlwaysDraw, tex, null, 0, WallHealth.EUnbreakale, null, null ),
                    new Wall(   Others.EFloor100x100,  new LibVertex-100.0f, 0.0f,    z     ), 0.0f,   Scalation.ENone,  Invert.ENo, WallCollidable.EYes,  WallAction.ENone, WallClimbable.EYes, DrawMethod.EAlwaysDraw, tex, null, 0, WallHealth.EUnbreakale, null, null ),
                    new Wall(   Others.EFloor100x100,  new LibVertex-100.0f, -100.0f, z     ), 0.0f,   Scalation.ENone,  Invert.ENo, WallCollidable.EYes,  WallAction.ENone, WallClimbable.EYes, DrawMethod.EAlwaysDraw, tex, null, 0, WallHealth.EUnbreakale, null, null ),
                }
            );
        }
View Full Code Here

        **************************************************************************************/
        public static final WallCollection createWall( LibD3dsFile file, float x, float y, float z, float rotZ, int sizeX, LibTexture doorTex, WallHealth doorHealth )
        {
            Vector<Wall> allWalls = new Vector<Wall>();

            Wall anchor = null;
            for ( int i = 0; i < sizeX; ++i )
            {
                if ( i == 0 )
                {
                    Wall w = new Wall( file,  new LibVertexx,   y,    z    ), rotZ,  Scalation.ENone, Invert.ENo,   WallCollidable.EYes,  WallAction.ENone, WallClimbable.ENo, DrawMethod.EAlwaysDraw, doorTex, null, 0, doorHealth, null, null );
                    anchor = w;
                }
                else
                {
                    Wall w = new Wall( file,  new LibVertexi * -1.0f0.0f,    0.0f    ), 0.0f,  Scalation.ENone, Invert.ENo,   WallCollidable.EYes,  WallAction.ENone, WallClimbable.ENo, DrawMethod.EAlwaysDraw, doorTex, null, 0, doorHealth, null, null );
                    allWalls.add( w );
                }
            }

            return new WallCollection( anchor, allWalls.toArray( new Wall[] {} ) );
View Full Code Here

            Door wallDoorTwo            = new Door(   Others.EDoor1,    0.0f,    0.0f,    ( action == WallAction.EElevatorUp ? 0.0f : -2.5f ), 90.0f, WallCollidable.EYes, WallAction.EDoorSlideLeft, WallClimbable.ENo, doorTex, WallHealth.EUnbreakale, null, true, DoorSettings.DOOR_DEFAULT_AUTO_CLOSE_DELAY );

            //create shaft if desired
            if ( wallTex != null )
            {
                allWalls.add( new Wall(   Others.EWall2Solid,  new LibVertex0.0f,   0.0f,    0.0f    ), 270.0f, Scalation.ENone, Invert.ENo,   WallCollidable.EYes,  WallAction.ENone, WallClimbable.ENo, DrawMethod.EAlwaysDraw, wallTex, null, 0, WallHealth.EUnbreakale, null, null ) );
                allWalls.add( new Wall(   Others.EWall2Solid,  new LibVertex2.0f,   0.0f,    0.0f    ), 270.0f, Scalation.ENone, Invert.ENo,   WallCollidable.EYes,  WallAction.ENone, WallClimbable.ENo, DrawMethod.EAlwaysDraw, wallTex, null, 0, WallHealth.EUnbreakale, null, null ) );
                allWalls.add( new Wall(   Others.EWall2Solid,  new LibVertex0.0f,   2.0f,    0.0f    ), 180.0f, Scalation.ENone, Invert.ENo,   WallCollidable.EYes,  WallAction.ENone, WallClimbable.ENo, DrawMethod.EAlwaysDraw, wallTex, null, 0, WallHealth.EUnbreakale, null, null ) );

                allWalls.add( new Wall(   Others.EWall2Solid,  new LibVertex0.0f,   0.0f,    ( action == WallAction.EElevatorUp ? 2.5f : -2.5f )    ), 270.0f, Scalation.ENone, Invert.ENo,   WallCollidable.EYes,  WallAction.ENone, WallClimbable.ENo, DrawMethod.EAlwaysDraw, wallTex,   null, 0, WallHealth.EUnbreakale, null, null ) );
                allWalls.add( new Wall(   Others.EWall2Solid,  new LibVertex2.0f,   0.0f,    ( action == WallAction.EElevatorUp ? 2.5f : -2.5f )    ), 270.0f, Scalation.ENone, Invert.ENo,   WallCollidable.EYes,  WallAction.ENone, WallClimbable.ENo, DrawMethod.EAlwaysDraw, wallTex,   null, 0, WallHealth.EUnbreakale, null, null ) );
                allWalls.add( new Wall(   Others.EWall2Solid,  new LibVertex0.0f,   2.0f,    ( action == WallAction.EElevatorUp ? 2.5f : -2.5f )    ), 180.0f, Scalation.ENone, Invert.ENo,   WallCollidable.EYes,  WallAction.ENone, WallClimbable.ENo, DrawMethod.EAlwaysDraw, wallTex,   null, 0, WallHealth.EUnbreakale, null, null ) );

                //door sockets
                allWalls.add( new Wall(   Others.EWall2Door,   new LibVertex0.0f,    0.0f,   0.0f                                                   ), 180.0f, Scalation.ENone, Invert.ENo,   WallCollidable.EYes,  WallAction.ENone, WallClimbable.ENo, DrawMethod.EAlwaysDraw, wallTex,   null, 0, WallHealth.EUnbreakale, null, null ) );
                allWalls.add( new Wall(   Others.EWall2Door,   new LibVertex0.0f,    0.0f,   ( action == WallAction.EElevatorUp ? 2.5f : -2.5f )    ), 180.0f, Scalation.ENone, Invert.ENo,   WallCollidable.EYes,  WallAction.ENone, WallClimbable.ENo, DrawMethod.EAlwaysDraw, wallTex,   null, 0, WallHealth.EUnbreakale, null, null ) );
            }

            //set connected elevator for doors
            wallDoorOne.setConnectedElevator(   wallElevatorFloor, targetSectionDoorOne );
            wallDoorTwo.setConnectedElevator(   wallElevatorFloor, targetSectionDoorTwo );
View Full Code Here

            if ( wallTex != null )
            {
                for ( float yy = 0.0f; yy < sizeY; yy += 2.0f )
                {
                    //walls
                    allWalls.add( new Wall(   Others.EWall2Solid,  new LibVertex0.0f,   yy,    0.0f    ), 270.0f,  Scalation.ENone, Invert.ENo,   WallCollidable.EYes,  WallAction.ENone, WallClimbable.ENo, DrawMethod.EAlwaysDraw, wallTex,   null, 0, WallHealth.EUnbreakale, null, null ) );
                    allWalls.add( new Wall(   Others.EWall2Solid,  new LibVertex2.0f,   yy,    0.0f    ), 270.0f,  Scalation.ENone, Invert.ENo,   WallCollidable.EYes,  WallAction.ENone, WallClimbable.ENo, DrawMethod.EAlwaysDraw, wallTex,   null, 0, WallHealth.EUnbreakale, null, null ) );
                }

                //door sockets
                allWalls.add( new Wall(   Others.EWall2Door,   new LibVertex0.0f,    0.0f,   0.0f    ), 180.0f, Scalation.ENone, Invert.ENo,   WallCollidable.EYes,  WallAction.ENone, WallClimbable.ENo, DrawMethod.EAlwaysDraw, doorSocketTex,   null, 0, WallHealth.EUnbreakale, null, null ) );
                allWalls.add( new Wall(   Others.EWall2Door,   new LibVertex0.0f,    sizeY,  0.0f    ), 180.0f, Scalation.ENone, Invert.ENo,   WallCollidable.EYes,  WallAction.ENone, WallClimbable.ENo, DrawMethod.EAlwaysDraw, doorSocketTex,   null, 0, WallHealth.EUnbreakale, null, null ) );
            }

            //create ceiling if desired
            if ( ceilingTex != null )
            {
View Full Code Here

        public static final WallCollection createStaircase( float x, float y, float z, boolean toUpper, boolean toLower, float initRotZ, LibTexture wallTex )
        {
            Wall[] wallsBasement = new Wall[]
            {
                new Wall(   Others.EFloor3x3,       new LibVertex3.0f,   0.0f,   0.0f    )0.0f,   Scalation.ENone, Invert.ENo,   WallCollidable.EYes,  WallAction.ENone, WallClimbable.EYes, DrawMethod.EAlwaysDraw, WallTex.ECarpet1,   null, 0, WallHealth.EUnbreakale, null, null ),

                new Wall(   Others.EWall2Solid,      new LibVertex3.0f,   5.0f,   0.0f    )90.0f,   Scalation.ENone, Invert.ENo,   WallCollidable.EYes,  WallAction.ENone, WallClimbable.ENo, DrawMethod.EAlwaysDraw, wallTex,   null, 0, WallHealth.EUnbreakale, null, null ),
                new Wall(   Others.EWall1Solid,      new LibVertex3.0f,   6.0f,   0.0f    )90.0f,   Scalation.ENone, Invert.ENo,   WallCollidable.EYes,  WallAction.ENone, WallClimbable.ENo, DrawMethod.EAlwaysDraw, wallTex,   null, 0, WallHealth.EUnbreakale, null, null ),

                new Wall(   Others.EWall2Solid,      new LibVertex0.0f,   2.0f,   0.0f    )90.0f,   Scalation.ENone, Invert.ENo,   WallCollidable.EYes,  WallAction.ENone, WallClimbable.ENo, DrawMethod.EAlwaysDraw, wallTex,   null, 0, WallHealth.EUnbreakale, null, null ),
                new Wall(   Others.EWall2Solid,      new LibVertex6.0f,   2.0f,   0.0f    )90.0f,   Scalation.ENone, Invert.ENo,   WallCollidable.EYes,  WallAction.ENone, WallClimbable.ENo, DrawMethod.EAlwaysDraw, wallTex,   null, 0, WallHealth.EUnbreakale, null, null ),
                new Wall(   Others.EWall2Solid,      new LibVertex0.0f,   4.0f,   0.0f    )90.0f,   Scalation.ENone, Invert.ENo,   WallCollidable.EYes,  WallAction.ENone, WallClimbable.ENo, DrawMethod.EAlwaysDraw, wallTex,   null, 0, WallHealth.EUnbreakale, null, null ),
                new Wall(   Others.EWall2Solid,      new LibVertex6.0f,   4.0f,   0.0f    )90.0f,   Scalation.ENone, Invert.ENo,   WallCollidable.EYes,  WallAction.ENone, WallClimbable.ENo, DrawMethod.EAlwaysDraw, wallTex,   null, 0, WallHealth.EUnbreakale, null, null ),
                new Wall(   Others.EWall2Solid,      new LibVertex0.0f,   6.0f,   0.0f    )90.0f,   Scalation.ENone, Invert.ENo,   WallCollidable.EYes,  WallAction.ENone, WallClimbable.ENo, DrawMethod.EAlwaysDraw, wallTex,   null, 0, WallHealth.EUnbreakale, null, null ),
                new Wall(   Others.EWall2Solid,      new LibVertex6.0f,   6.0f,   0.0f    )90.0f,   Scalation.ENone, Invert.ENo,   WallCollidable.EYes,  WallAction.ENone, WallClimbable.ENo, DrawMethod.EAlwaysDraw, wallTex,   null, 0, WallHealth.EUnbreakale, null, null ),
                new Wall(   Others.EWall2Solid,      new LibVertex0.0f,   8.0f,   0.0f    )90.0f,   Scalation.ENone, Invert.ENo,   WallCollidable.EYes,  WallAction.ENone, WallClimbable.ENo, DrawMethod.EAlwaysDraw, wallTex,   null, 0, WallHealth.EUnbreakale, null, null ),
                new Wall(   Others.EWall2Solid,      new LibVertex6.0f,   8.0f,   0.0f    )90.0f,   Scalation.ENone, Invert.ENo,   WallCollidable.EYes,  WallAction.ENone, WallClimbable.ENo, DrawMethod.EAlwaysDraw, wallTex,   null, 0, WallHealth.EUnbreakale, null, null ),
                new Wall(   Others.EWall1Solid,      new LibVertex0.0f,   9.0f,   0.0f    )90.0f,   Scalation.ENone, Invert.ENo,   WallCollidable.EYes,  WallAction.ENone, WallClimbable.ENo, DrawMethod.EAlwaysDraw, wallTex,   null, 0, WallHealth.EUnbreakale, null, null ),
                new Wall(   Others.EWall1Solid,      new LibVertex6.0f,   9.0f,   0.0f    )90.0f,   Scalation.ENone, Invert.ENo,   WallCollidable.EYes,  WallAction.ENone, WallClimbable.ENo, DrawMethod.EAlwaysDraw, wallTex,   null, 0, WallHealth.EUnbreakale, null, null ),

                new Wall(   Others.EWall2Solid,      new LibVertex6.0f,   9.0f,   0.0f    )0.0f,   Scalation.ENone, Invert.ENo,   WallCollidable.EYes,  WallAction.ENone, WallClimbable.ENo, DrawMethod.EAlwaysDraw, wallTex,   null, 0, WallHealth.EUnbreakale, null, null ),
                new Wall(   Others.EWall2Solid,      new LibVertex4.0f,   9.0f,   0.0f    )0.0f,   Scalation.ENone, Invert.ENo,   WallCollidable.EYes,  WallAction.ENone, WallClimbable.ENo, DrawMethod.EAlwaysDraw, wallTex,   null, 0, WallHealth.EUnbreakale, null, null ),
                new Wall(   Others.EWall2Solid,      new LibVertex2.0f,   9.0f,   0.0f    )0.0f,   Scalation.ENone, Invert.ENo,   WallCollidable.EYes,  WallAction.ENone, WallClimbable.ENo, DrawMethod.EAlwaysDraw, wallTex,   null, 0, WallHealth.EUnbreakale, null, null ),
            };

            Wall[] wallsUp =
            (
                    toUpper
                ?   new Wall[]
                    {
                        new Wall(   Others.EFloor3x3,       new LibVertex0.0f,   0.0f,   7.5f    )0.0f,   Scalation.ENone, Invert.ENo,   WallCollidable.EYes,  WallAction.ENone, WallClimbable.EYes, DrawMethod.EAlwaysDraw, WallTex.ECeiling1,   null, 0, WallHealth.EUnbreakale, null, null ),
                        new Wall(   Others.EFloor3x3,       new LibVertex3.0f,   0.0f,   7.5f    )0.0f,   Scalation.ENone, Invert.ENo,   WallCollidable.EYes,  WallAction.ENone, WallClimbable.EYes, DrawMethod.EAlwaysDraw, WallTex.ECeiling1,   null, 0, WallHealth.EUnbreakale, null, null ),
                        new Wall(   Others.EFloor3x3,       new LibVertex0.0f,   3.0f,   7.5f    )0.0f,   Scalation.ENone, Invert.ENo,   WallCollidable.EYes,  WallAction.ENone, WallClimbable.EYes, DrawMethod.EAlwaysDraw, WallTex.ECeiling1,   null, 0, WallHealth.EUnbreakale, null, null ),
                        new Wall(   Others.EFloor3x3,       new LibVertex3.0f,   3.0f,   7.5f    )0.0f,   Scalation.ENone, Invert.ENo,   WallCollidable.EYes,  WallAction.ENone, WallClimbable.EYes, DrawMethod.EAlwaysDraw, WallTex.ECeiling1,   null, 0, WallHealth.EUnbreakale, null, null ),
                        new Wall(   Others.EFloor3x3,       new LibVertex0.0f,   6.0f,   7.5f    )0.0f,   Scalation.ENone, Invert.ENo,   WallCollidable.EYes,  WallAction.ENone, WallClimbable.EYes, DrawMethod.EAlwaysDraw, WallTex.ECeiling1,   null, 0, WallHealth.EUnbreakale, null, null ),
                        new Wall(   Others.EFloor3x3,       new LibVertex3.0f,   6.0f,   7.5f    )0.0f,   Scalation.ENone, Invert.ENo,   WallCollidable.EYes,  WallAction.ENone, WallClimbable.EYes, DrawMethod.EAlwaysDraw, WallTex.ECeiling1,   null, 0, WallHealth.EUnbreakale, null, null ),


                        new Wall(   Others.EStairs3x3,      new LibVertex0.0f,   3.0f,   0.0f   )0.0f,   Scalation.ENone, Invert.ENo,   WallCollidable.EYes,  WallAction.ENone, WallClimbable.EYes, DrawMethod.EAlwaysDraw, WallTex.EMarble1, new LibTexture[] { WallTex.EMarble2, }, 0, WallHealth.EUnbreakale, null, null ),
                        new Wall(   Others.EStairs3x3,      new LibVertex6.0f,   6.0f,   2.5f   )180.0f, Scalation.ENone, Invert.ENo,   WallCollidable.EYes,  WallAction.ENone, WallClimbable.EYes, DrawMethod.EAlwaysDraw, WallTex.EMarble1, new LibTexture[] { WallTex.EMarble2, }, 0, WallHealth.EUnbreakale, null, null ),

                        new Wall(   Others.EFloor3x3,       new LibVertex0.0f,   6.0f,   2.5f   )0.0f,   Scalation.ENone, Invert.ENo,   WallCollidable.EYes,  WallAction.ENone, WallClimbable.EYes, DrawMethod.EAlwaysDraw, WallTex.ECarpet1,   null, 0, WallHealth.EUnbreakale, null, null ),
                        new Wall(   Others.EFloor3x3,       new LibVertex3.0f,   6.0f,   2.5f   )0.0f,   Scalation.ENone, Invert.ENo,   WallCollidable.EYes,  WallAction.ENone, WallClimbable.EYes, DrawMethod.EAlwaysDraw, WallTex.ECarpet1,   null, 0, WallHealth.EUnbreakale, null, null ),
                        new Wall(   Others.EFloor3x3,       new LibVertex0.0f,   0.0f,   5.0f   )0.0f,   Scalation.ENone, Invert.ENo,   WallCollidable.EYes,  WallAction.ENone, WallClimbable.EYes, DrawMethod.EAlwaysDraw, WallTex.ECarpet1,   null, 0, WallHealth.EUnbreakale, null, null ),
                        new Wall(   Others.EFloor3x3,       new LibVertex3.0f,   0.0f,   5.0f   )0.0f,   Scalation.ENone, Invert.ENo,   WallCollidable.EYes,  WallAction.ENone, WallClimbable.EYes, DrawMethod.EAlwaysDraw, WallTex.ECarpet1,   null, 0, WallHealth.EUnbreakale, null, null ),

                        new Wall(   Others.EWall2Solid,      new LibVertex6.0f,   9.0f,   2.5f    )0.0f,   Scalation.ENone, Invert.ENo,   WallCollidable.EYes,  WallAction.ENone, WallClimbable.ENo, DrawMethod.EAlwaysDraw, wallTex,   null, 0, WallHealth.EUnbreakale, null, null ),
                        new Wall(   Others.EWall2Solid,      new LibVertex4.0f,   9.0f,   2.5f    )0.0f,   Scalation.ENone, Invert.ENo,   WallCollidable.EYes,  WallAction.ENone, WallClimbable.ENo, DrawMethod.EAlwaysDraw, wallTex,   null, 0, WallHealth.EUnbreakale, null, null ),
                        new Wall(   Others.EWall2Solid,      new LibVertex2.0f,   9.0f,   2.5f    )0.0f,   Scalation.ENone, Invert.ENo,   WallCollidable.EYes,  WallAction.ENone, WallClimbable.ENo, DrawMethod.EAlwaysDraw, wallTex,   null, 0, WallHealth.EUnbreakale, null, null ),
                        new Wall(   Others.EWall2Solid,      new LibVertex6.0f,   9.0f,   5.0f    )0.0f,   Scalation.ENone, Invert.ENo,   WallCollidable.EYes,  WallAction.ENone, WallClimbable.ENo, DrawMethod.EAlwaysDraw, wallTex,   null, 0, WallHealth.EUnbreakale, null, null ),
                        new Wall(   Others.EWall2Solid,      new LibVertex4.0f,   9.0f,   5.0f    )0.0f,   Scalation.ENone, Invert.ENo,   WallCollidable.EYes,  WallAction.ENone, WallClimbable.ENo, DrawMethod.EAlwaysDraw, wallTex,   null, 0, WallHealth.EUnbreakale, null, null ),
                        new Wall(   Others.EWall2Solid,      new LibVertex2.0f,   9.0f,   5.0f    )0.0f,   Scalation.ENone, Invert.ENo,   WallCollidable.EYes,  WallAction.ENone, WallClimbable.ENo, DrawMethod.EAlwaysDraw, wallTex,   null, 0, WallHealth.EUnbreakale, null, null ),

                        new Wall(   Others.EWall2Solid,      new LibVertex0.0f,   2.0f,   2.5f    )90.0f,   Scalation.ENone, Invert.ENo,   WallCollidable.EYes,  WallAction.ENone, WallClimbable.ENo, DrawMethod.EAlwaysDraw, wallTex,   null, 0, WallHealth.EUnbreakale, null, null ),
                        new Wall(   Others.EWall2Solid,      new LibVertex0.0f,   4.0f,   2.5f    )90.0f,   Scalation.ENone, Invert.ENo,   WallCollidable.EYes,  WallAction.ENone, WallClimbable.ENo, DrawMethod.EAlwaysDraw, wallTex,   null, 0, WallHealth.EUnbreakale, null, null ),
                        new Wall(   Others.EWall2Solid,      new LibVertex0.0f,   6.0f,   2.5f    )90.0f,   Scalation.ENone, Invert.ENo,   WallCollidable.EYes,  WallAction.ENone, WallClimbable.ENo, DrawMethod.EAlwaysDraw, wallTex,   null, 0, WallHealth.EUnbreakale, null, null ),
                        new Wall(   Others.EWall2Solid,      new LibVertex0.0f,   8.0f,   2.5f    )90.0f,   Scalation.ENone, Invert.ENo,   WallCollidable.EYes,  WallAction.ENone, WallClimbable.ENo, DrawMethod.EAlwaysDraw, wallTex,   null, 0, WallHealth.EUnbreakale, null, null ),
                        new Wall(   Others.EWall1Solid,      new LibVertex0.0f,   9.0f,   2.5f    )90.0f,   Scalation.ENone, Invert.ENo,   WallCollidable.EYes,  WallAction.ENone, WallClimbable.ENo, DrawMethod.EAlwaysDraw, wallTex,   null, 0, WallHealth.EUnbreakale, null, null ),

                        new Wall(   Others.EWall2Solid,      new LibVertex6.0f,   2.0f,   2.5f    )90.0f,   Scalation.ENone, Invert.ENo,   WallCollidable.EYes,  WallAction.ENone, WallClimbable.ENo, DrawMethod.EAlwaysDraw, wallTex,   null, 0, WallHealth.EUnbreakale, null, null ),
                        new Wall(   Others.EWall2Solid,      new LibVertex6.0f,   4.0f,   2.5f    )90.0f,   Scalation.ENone, Invert.ENo,   WallCollidable.EYes,  WallAction.ENone, WallClimbable.ENo, DrawMethod.EAlwaysDraw, wallTex,   null, 0, WallHealth.EUnbreakale, null, null ),
                        new Wall(   Others.EWall2Solid,      new LibVertex6.0f,   6.0f,   2.5f    )90.0f,   Scalation.ENone, Invert.ENo,   WallCollidable.EYes,  WallAction.ENone, WallClimbable.ENo, DrawMethod.EAlwaysDraw, wallTex,   null, 0, WallHealth.EUnbreakale, null, null ),
                        new Wall(   Others.EWall2Solid,      new LibVertex6.0f,   8.0f,   2.5f    )90.0f,   Scalation.ENone, Invert.ENo,   WallCollidable.EYes,  WallAction.ENone, WallClimbable.ENo, DrawMethod.EAlwaysDraw, wallTex,   null, 0, WallHealth.EUnbreakale, null, null ),
                        new Wall(   Others.EWall1Solid,      new LibVertex6.0f,   9.0f,   2.5f    )90.0f,   Scalation.ENone, Invert.ENo,   WallCollidable.EYes,  WallAction.ENone, WallClimbable.ENo, DrawMethod.EAlwaysDraw, wallTex,   null, 0, WallHealth.EUnbreakale, null, null ),

                        new Wall(   Others.EWall2Solid,      new LibVertex0.0f,   2.0f,   5.0f    )90.0f,   Scalation.ENone, Invert.ENo,   WallCollidable.EYes,  WallAction.ENone, WallClimbable.ENo, DrawMethod.EAlwaysDraw, wallTex,   null, 0, WallHealth.EUnbreakale, null, null ),
                        new Wall(   Others.EWall2Solid,      new LibVertex0.0f,   4.0f,   5.0f    )90.0f,   Scalation.ENone, Invert.ENo,   WallCollidable.EYes,  WallAction.ENone, WallClimbable.ENo, DrawMethod.EAlwaysDraw, wallTex,   null, 0, WallHealth.EUnbreakale, null, null ),
                        new Wall(   Others.EWall2Solid,      new LibVertex0.0f,   6.0f,   5.0f    )90.0f,   Scalation.ENone, Invert.ENo,   WallCollidable.EYes,  WallAction.ENone, WallClimbable.ENo, DrawMethod.EAlwaysDraw, wallTex,   null, 0, WallHealth.EUnbreakale, null, null ),
                        new Wall(   Others.EWall2Solid,      new LibVertex0.0f,   8.0f,   5.0f    )90.0f,   Scalation.ENone, Invert.ENo,   WallCollidable.EYes,  WallAction.ENone, WallClimbable.ENo, DrawMethod.EAlwaysDraw, wallTex,   null, 0, WallHealth.EUnbreakale, null, null ),
                        new Wall(   Others.EWall1Solid,      new LibVertex0.0f,   9.0f,   5.0f    )90.0f,   Scalation.ENone, Invert.ENo,   WallCollidable.EYes,  WallAction.ENone, WallClimbable.ENo, DrawMethod.EAlwaysDraw, wallTex,   null, 0, WallHealth.EUnbreakale, null, null ),

                        new Wall(   Others.EWall2Solid,      new LibVertex6.0f,   2.0f,   5.0f    )90.0f,   Scalation.ENone, Invert.ENo,   WallCollidable.EYes,  WallAction.ENone, WallClimbable.ENo, DrawMethod.EAlwaysDraw, wallTex,   null, 0, WallHealth.EUnbreakale, null, null ),
                        new Wall(   Others.EWall2Solid,      new LibVertex6.0f,   4.0f,   5.0f    )90.0f,   Scalation.ENone, Invert.ENo,   WallCollidable.EYes,  WallAction.ENone, WallClimbable.ENo, DrawMethod.EAlwaysDraw, wallTex,   null, 0, WallHealth.EUnbreakale, null, null ),
                        new Wall(   Others.EWall2Solid,      new LibVertex6.0f,   6.0f,   5.0f    )90.0f,   Scalation.ENone, Invert.ENo,   WallCollidable.EYes,  WallAction.ENone, WallClimbable.ENo, DrawMethod.EAlwaysDraw, wallTex,   null, 0, WallHealth.EUnbreakale, null, null ),
                        new Wall(   Others.EWall2Solid,      new LibVertex6.0f,   8.0f,   5.0f    )90.0f,   Scalation.ENone, Invert.ENo,   WallCollidable.EYes,  WallAction.ENone, WallClimbable.ENo, DrawMethod.EAlwaysDraw, wallTex,   null, 0, WallHealth.EUnbreakale, null, null ),
                        new Wall(   Others.EWall1Solid,      new LibVertex6.0f,   9.0f,   5.0f    )90.0f,   Scalation.ENone, Invert.ENo,   WallCollidable.EYes,  WallAction.ENone, WallClimbable.ENo, DrawMethod.EAlwaysDraw, wallTex,   null, 0, WallHealth.EUnbreakale, null, null ),

                        new Wall(   Others.EWall2Solid,      new LibVertex3.0f,   5.0f,   2.5f    )90.0f,   Scalation.ENone, Invert.ENo,   WallCollidable.EYes,  WallAction.ENone, WallClimbable.ENo, DrawMethod.EAlwaysDraw, wallTex,   null, 0, WallHealth.EUnbreakale, null, null ),
                        new Wall(   Others.EWall1Solid,      new LibVertex3.0f,   6.0f,   2.5f    )90.0f,   Scalation.ENone, Invert.ENo,   WallCollidable.EYes,  WallAction.ENone, WallClimbable.ENo, DrawMethod.EAlwaysDraw, wallTex,   null, 0, WallHealth.EUnbreakale, null, null ),
                        new Wall(   Others.EWall2Solid,      new LibVertex3.0f,   5.0f,   5.0f    )90.0f,   Scalation.ENone, Invert.ENo,   WallCollidable.EYes,  WallAction.ENone, WallClimbable.ENo, DrawMethod.EAlwaysDraw, wallTex,   null, 0, WallHealth.EUnbreakale, null, null ),
                        new Wall(   Others.EWall1Solid,      new LibVertex3.0f,   6.0f,   5.0f    )90.0f,   Scalation.ENone, Invert.ENo,   WallCollidable.EYes,  WallAction.ENone, WallClimbable.ENo, DrawMethod.EAlwaysDraw, wallTex,   null, 0, WallHealth.EUnbreakale, null, null ),

                        new Wall(   Others.EWall2WindowSocket, new LibVertex3.0f,   3.0f,   5.0f    ), 0.0f,   Scalation.ENone, Invert.ENo,   WallCollidable.EYes,  WallAction.ENone, WallClimbable.ENo, DrawMethod.EAlwaysDraw, wallTex,   null, 0, WallHealth.EUnbreakale, null, null ),
                        new Wall(   Others.EWall1WindowSocket, new LibVertex1.0f,   3.0f,   5.0f    ), 0.0f,   Scalation.ENone, Invert.ENo,   WallCollidable.EYes,  WallAction.ENone, WallClimbable.ENo, DrawMethod.EAlwaysDraw, wallTex,   null, 0, WallHealth.EUnbreakale, null, null ),
                    }
                :   new Wall[]
                    {

                        new Wall(   Others.EFloor3x3,       new LibVertex0.0f,   0.0f,   2.5f    )0.0f,   Scalation.ENone, Invert.ENo,   WallCollidable.EYes,  WallAction.ENone, WallClimbable.EYes, DrawMethod.EAlwaysDraw, WallTex.ECeiling1,   null, 0, WallHealth.EUnbreakale, null, null ),
                        new Wall(   Others.EFloor3x3,       new LibVertex3.0f,   0.0f,   2.5f    )0.0f,   Scalation.ENone, Invert.ENo,   WallCollidable.EYes,  WallAction.ENone, WallClimbable.EYes, DrawMethod.EAlwaysDraw, WallTex.ECeiling1,   null, 0, WallHealth.EUnbreakale, null, null ),
                        new Wall(   Others.EFloor3x3,       new LibVertex0.0f,   3.0f,   2.5f    )0.0f,   Scalation.ENone, Invert.ENo,   WallCollidable.EYes,  WallAction.ENone, WallClimbable.EYes, DrawMethod.EAlwaysDraw, WallTex.ECeiling1,   null, 0, WallHealth.EUnbreakale, null, null ),
                        new Wall(   Others.EFloor3x3,       new LibVertex3.0f,   3.0f,   2.5f    )0.0f,   Scalation.ENone, Invert.ENo,   WallCollidable.EYes,  WallAction.ENone, WallClimbable.EYes, DrawMethod.EAlwaysDraw, WallTex.ECeiling1,   null, 0, WallHealth.EUnbreakale, null, null ),
                        new Wall(   Others.EFloor3x3,       new LibVertex0.0f,   6.0f,   2.5f    )0.0f,   Scalation.ENone, Invert.ENo,   WallCollidable.EYes,  WallAction.ENone, WallClimbable.EYes, DrawMethod.EAlwaysDraw, WallTex.ECeiling1,   null, 0, WallHealth.EUnbreakale, null, null ),
                        new Wall(   Others.EFloor3x3,       new LibVertex3.0f,   6.0f,   2.5f    )0.0f,   Scalation.ENone, Invert.ENo,   WallCollidable.EYes,  WallAction.ENone, WallClimbable.EYes, DrawMethod.EAlwaysDraw, WallTex.ECeiling1,   null, 0, WallHealth.EUnbreakale, null, null ),

                        new Wall(   Others.EWall2WindowSocket, new LibVertex3.0f,   3.0f,   0.0f    ), 0.0f,   Scalation.ENone, Invert.ENo,   WallCollidable.EYes,  WallAction.ENone, WallClimbable.ENo, DrawMethod.EAlwaysDraw, wallTex,   null, 0, WallHealth.EUnbreakale, null, null ),
                        new Wall(   Others.EWall1WindowSocket, new LibVertex1.0f,   3.0f,   0.0f    ), 0.0f,   Scalation.ENone, Invert.ENo,   WallCollidable.EYes,  WallAction.ENone, WallClimbable.ENo, DrawMethod.EAlwaysDraw, wallTex,   null, 0, WallHealth.EUnbreakale, null, null ),
                    }
            );

            Wall[] wallsDown =
            (
                    toLower
                ?   new Wall[]
                    {
                        new Wall(   Others.EStairs3x3,      new LibVertex6.0f,   6.0f,   -2.5f   )180.0f, Scalation.ENone, Invert.ENo,   WallCollidable.EYes,  WallAction.ENone, WallClimbable.EYes, DrawMethod.EAlwaysDraw, WallTex.EMarble1, new LibTexture[] { WallTex.EMarble2, }, 0, WallHealth.EUnbreakale, null, null ),
                        new Wall(   Others.EStairs3x3,      new LibVertex0.0f,   3.0f,   -5.0f   )0.0f,   Scalation.ENone, Invert.ENo,   WallCollidable.EYes,  WallAction.ENone, WallClimbable.EYes, DrawMethod.EAlwaysDraw, WallTex.EMarble1, new LibTexture[] { WallTex.EMarble2, }, 0, WallHealth.EUnbreakale, null, null ),

                        new Wall(   Others.EFloor3x3,       new LibVertex0.0f,   6.0f,   -2.5f   )0.0f,   Scalation.ENone, Invert.ENo,   WallCollidable.EYes,  WallAction.ENone, WallClimbable.EYes, DrawMethod.EAlwaysDraw, WallTex.ECarpet1,   null, 0, WallHealth.EUnbreakale, null, null ),
                        new Wall(   Others.EFloor3x3,       new LibVertex3.0f,   6.0f,   -2.5f   )0.0f,   Scalation.ENone, Invert.ENo,   WallCollidable.EYes,  WallAction.ENone, WallClimbable.EYes, DrawMethod.EAlwaysDraw, WallTex.ECarpet1,   null, 0, WallHealth.EUnbreakale, null, null ),
                        new Wall(   Others.EFloor3x3,       new LibVertex0.0f,   0.0f,   -5.0f   )0.0f,   Scalation.ENone, Invert.ENo,   WallCollidable.EYes,  WallAction.ENone, WallClimbable.EYes, DrawMethod.EAlwaysDraw, WallTex.ECarpet1,   null, 0, WallHealth.EUnbreakale, null, null ),
                        new Wall(   Others.EFloor3x3,       new LibVertex3.0f,   0.0f,   -5.0f   )0.0f,   Scalation.ENone, Invert.ENo,   WallCollidable.EYes,  WallAction.ENone, WallClimbable.EYes, DrawMethod.EAlwaysDraw, WallTex.ECarpet1,   null, 0, WallHealth.EUnbreakale, null, null ),

                        new Wall(   Others.EWall2Solid,      new LibVertex6.0f,   9.0f,   -2.5f    )0.0f,   Scalation.ENone, Invert.ENo,   WallCollidable.EYes,  WallAction.ENone, WallClimbable.ENo, DrawMethod.EAlwaysDraw, wallTex,   null, 0, WallHealth.EUnbreakale, null, null ),
                        new Wall(   Others.EWall2Solid,      new LibVertex4.0f,   9.0f,   -2.5f    )0.0f,   Scalation.ENone, Invert.ENo,   WallCollidable.EYes,  WallAction.ENone, WallClimbable.ENo, DrawMethod.EAlwaysDraw, wallTex,   null, 0, WallHealth.EUnbreakale, null, null ),
                        new Wall(   Others.EWall2Solid,      new LibVertex2.0f,   9.0f,   -2.5f    )0.0f,   Scalation.ENone, Invert.ENo,   WallCollidable.EYes,  WallAction.ENone, WallClimbable.ENo, DrawMethod.EAlwaysDraw, wallTex,   null, 0, WallHealth.EUnbreakale, null, null ),
                        new Wall(   Others.EWall2Solid,      new LibVertex6.0f,   9.0f,   -5.0f    )0.0f,   Scalation.ENone, Invert.ENo,   WallCollidable.EYes,  WallAction.ENone, WallClimbable.ENo, DrawMethod.EAlwaysDraw, wallTex,   null, 0, WallHealth.EUnbreakale, null, null ),
                        new Wall(   Others.EWall2Solid,      new LibVertex4.0f,   9.0f,   -5.0f    )0.0f,   Scalation.ENone, Invert.ENo,   WallCollidable.EYes,  WallAction.ENone, WallClimbable.ENo, DrawMethod.EAlwaysDraw, wallTex,   null, 0, WallHealth.EUnbreakale, null, null ),
                        new Wall(   Others.EWall2Solid,      new LibVertex2.0f,   9.0f,   -5.0f    )0.0f,   Scalation.ENone, Invert.ENo,   WallCollidable.EYes,  WallAction.ENone, WallClimbable.ENo, DrawMethod.EAlwaysDraw, wallTex,   null, 0, WallHealth.EUnbreakale, null, null ),

                        new Wall(   Others.EWall2Solid,      new LibVertex0.0f,   2.0f,   -2.5f    )90.0f,   Scalation.ENone, Invert.ENo,   WallCollidable.EYes,  WallAction.ENone, WallClimbable.ENo, DrawMethod.EAlwaysDraw, wallTex,   null, 0, WallHealth.EUnbreakale, null, null ),
                        new Wall(   Others.EWall2Solid,      new LibVertex0.0f,   4.0f,   -2.5f    )90.0f,   Scalation.ENone, Invert.ENo,   WallCollidable.EYes,  WallAction.ENone, WallClimbable.ENo, DrawMethod.EAlwaysDraw, wallTex,   null, 0, WallHealth.EUnbreakale, null, null ),
                        new Wall(   Others.EWall2Solid,      new LibVertex0.0f,   6.0f,   -2.5f    )90.0f,   Scalation.ENone, Invert.ENo,   WallCollidable.EYes,  WallAction.ENone, WallClimbable.ENo, DrawMethod.EAlwaysDraw, wallTex,   null, 0, WallHealth.EUnbreakale, null, null ),
                        new Wall(   Others.EWall2Solid,      new LibVertex0.0f,   8.0f,   -2.5f    )90.0f,   Scalation.ENone, Invert.ENo,   WallCollidable.EYes,  WallAction.ENone, WallClimbable.ENo, DrawMethod.EAlwaysDraw, wallTex,   null, 0, WallHealth.EUnbreakale, null, null ),
                        new Wall(   Others.EWall1Solid,      new LibVertex0.0f,   9.0f,   -2.5f    )90.0f,   Scalation.ENone, Invert.ENo,   WallCollidable.EYes,  WallAction.ENone, WallClimbable.ENo, DrawMethod.EAlwaysDraw, wallTex,   null, 0, WallHealth.EUnbreakale, null, null ),

                        new Wall(   Others.EWall2Solid,      new LibVertex6.0f,   2.0f,   -2.5f    )90.0f,   Scalation.ENone, Invert.ENo,   WallCollidable.EYes,  WallAction.ENone, WallClimbable.ENo, DrawMethod.EAlwaysDraw, wallTex,   null, 0, WallHealth.EUnbreakale, null, null ),
                        new Wall(   Others.EWall2Solid,      new LibVertex6.0f,   4.0f,   -2.5f    )90.0f,   Scalation.ENone, Invert.ENo,   WallCollidable.EYes,  WallAction.ENone, WallClimbable.ENo, DrawMethod.EAlwaysDraw, wallTex,   null, 0, WallHealth.EUnbreakale, null, null ),
                        new Wall(   Others.EWall2Solid,      new LibVertex6.0f,   6.0f,   -2.5f    )90.0f,   Scalation.ENone, Invert.ENo,   WallCollidable.EYes,  WallAction.ENone, WallClimbable.ENo, DrawMethod.EAlwaysDraw, wallTex,   null, 0, WallHealth.EUnbreakale, null, null ),
                        new Wall(   Others.EWall2Solid,      new LibVertex6.0f,   8.0f,   -2.5f    )90.0f,   Scalation.ENone, Invert.ENo,   WallCollidable.EYes,  WallAction.ENone, WallClimbable.ENo, DrawMethod.EAlwaysDraw, wallTex,   null, 0, WallHealth.EUnbreakale, null, null ),
                        new Wall(   Others.EWall1Solid,      new LibVertex6.0f,   9.0f,   -2.5f    )90.0f,   Scalation.ENone, Invert.ENo,   WallCollidable.EYes,  WallAction.ENone, WallClimbable.ENo, DrawMethod.EAlwaysDraw, wallTex,   null, 0, WallHealth.EUnbreakale, null, null ),

                        new Wall(   Others.EWall2Solid,      new LibVertex0.0f,   2.0f,   -5.0f    )90.0f,   Scalation.ENone, Invert.ENo,   WallCollidable.EYes,  WallAction.ENone, WallClimbable.ENo, DrawMethod.EAlwaysDraw, wallTex,   null, 0, WallHealth.EUnbreakale, null, null ),
                        new Wall(   Others.EWall2Solid,      new LibVertex0.0f,   4.0f,   -5.0f    )90.0f,   Scalation.ENone, Invert.ENo,   WallCollidable.EYes,  WallAction.ENone, WallClimbable.ENo, DrawMethod.EAlwaysDraw, wallTex,   null, 0, WallHealth.EUnbreakale, null, null ),
                        new Wall(   Others.EWall2Solid,      new LibVertex0.0f,   6.0f,   -5.0f    )90.0f,   Scalation.ENone, Invert.ENo,   WallCollidable.EYes,  WallAction.ENone, WallClimbable.ENo, DrawMethod.EAlwaysDraw, wallTex,   null, 0, WallHealth.EUnbreakale, null, null ),
                        new Wall(   Others.EWall2Solid,      new LibVertex0.0f,   8.0f,   -5.0f    )90.0f,   Scalation.ENone, Invert.ENo,   WallCollidable.EYes,  WallAction.ENone, WallClimbable.ENo, DrawMethod.EAlwaysDraw, wallTex,   null, 0, WallHealth.EUnbreakale, null, null ),
                        new Wall(   Others.EWall1Solid,      new LibVertex0.0f,   9.0f,   -5.0f    )90.0f,   Scalation.ENone, Invert.ENo,   WallCollidable.EYes,  WallAction.ENone, WallClimbable.ENo, DrawMethod.EAlwaysDraw, wallTex,   null, 0, WallHealth.EUnbreakale, null, null ),

                        new Wall(   Others.EWall2Solid,      new LibVertex6.0f,   2.0f,   -5.0f    )90.0f,   Scalation.ENone, Invert.ENo,   WallCollidable.EYes,  WallAction.ENone, WallClimbable.ENo, DrawMethod.EAlwaysDraw, wallTex,   null, 0, WallHealth.EUnbreakale, null, null ),
                        new Wall(   Others.EWall2Solid,      new LibVertex6.0f,   4.0f,   -5.0f    )90.0f,   Scalation.ENone, Invert.ENo,   WallCollidable.EYes,  WallAction.ENone, WallClimbable.ENo, DrawMethod.EAlwaysDraw, wallTex,   null, 0, WallHealth.EUnbreakale, null, null ),
                        new Wall(   Others.EWall2Solid,      new LibVertex6.0f,   6.0f,   -5.0f    )90.0f,   Scalation.ENone, Invert.ENo,   WallCollidable.EYes,  WallAction.ENone, WallClimbable.ENo, DrawMethod.EAlwaysDraw, wallTex,   null, 0, WallHealth.EUnbreakale, null, null ),
                        new Wall(   Others.EWall2Solid,      new LibVertex6.0f,   8.0f,   -5.0f    )90.0f,   Scalation.ENone, Invert.ENo,   WallCollidable.EYes,  WallAction.ENone, WallClimbable.ENo, DrawMethod.EAlwaysDraw, wallTex,   null, 0, WallHealth.EUnbreakale, null, null ),
                        new Wall(   Others.EWall1Solid,      new LibVertex6.0f,   9.0f,   -5.0f    )90.0f,   Scalation.ENone, Invert.ENo,   WallCollidable.EYes,  WallAction.ENone, WallClimbable.ENo, DrawMethod.EAlwaysDraw, wallTex,   null, 0, WallHealth.EUnbreakale, null, null ),

                        new Wall(   Others.EWall2Solid,      new LibVertex3.0f,   5.0f,   -2.5f    )90.0f,   Scalation.ENone, Invert.ENo,   WallCollidable.EYes,  WallAction.ENone, WallClimbable.ENo, DrawMethod.EAlwaysDraw, wallTex,   null, 0, WallHealth.EUnbreakale, null, null ),
                        new Wall(   Others.EWall1Solid,      new LibVertex3.0f,   6.0f,   -2.5f    )90.0f,   Scalation.ENone, Invert.ENo,   WallCollidable.EYes,  WallAction.ENone, WallClimbable.ENo, DrawMethod.EAlwaysDraw, wallTex,   null, 0, WallHealth.EUnbreakale, null, null ),
                        new Wall(   Others.EWall2Solid,      new LibVertex3.0f,   5.0f,   -5.0f    )90.0f,   Scalation.ENone, Invert.ENo,   WallCollidable.EYes,  WallAction.ENone, WallClimbable.ENo, DrawMethod.EAlwaysDraw, wallTex,   null, 0, WallHealth.EUnbreakale, null, null ),
                        new Wall(   Others.EWall1Solid,      new LibVertex3.0f,   6.0f,   -5.0f    )90.0f,   Scalation.ENone, Invert.ENo,   WallCollidable.EYes,  WallAction.ENone, WallClimbable.ENo, DrawMethod.EAlwaysDraw, wallTex,   null, 0, WallHealth.EUnbreakale, null, null ),

                        new Wall(   Others.EWall2WindowSocket, new LibVertex6.0f,   3.0f,   -5.0f   ), 0.0f,   Scalation.ENone, Invert.ENo,   WallCollidable.EYes,  WallAction.ENone, WallClimbable.ENo, DrawMethod.EAlwaysDraw, wallTex,   null, 0, WallHealth.EUnbreakale, null, null ),
                        new Wall(   Others.EWall1WindowSocket, new LibVertex4.0f,   3.0f,   -5.0f   ), 0.0f,   Scalation.ENone, Invert.ENo,   WallCollidable.EYes,  WallAction.ENone, WallClimbable.ENo, DrawMethod.EAlwaysDraw, wallTex,   null, 0, WallHealth.EUnbreakale, null, null ),
                    }
                :   new Wall[]
                    {
                        new Wall(   Others.EFloor3x3,       new LibVertex0.0f,   3.0f,   0.0f    )0.0f,   Scalation.ENone, Invert.ENo,   WallCollidable.EYes,  WallAction.ENone, WallClimbable.EYes, DrawMethod.EAlwaysDraw, WallTex.ECarpet1,   null, 0, WallHealth.EUnbreakale, null, null ),
                        new Wall(   Others.EFloor3x3,       new LibVertex3.0f,   3.0f,   0.0f    )0.0f,   Scalation.ENone, Invert.ENo,   WallCollidable.EYes,  WallAction.ENone, WallClimbable.EYes, DrawMethod.EAlwaysDraw, WallTex.ECarpet1,   null, 0, WallHealth.EUnbreakale, null, null ),
                        new Wall(   Others.EFloor3x3,       new LibVertex0.0f,   6.0f,   0.0f    )0.0f,   Scalation.ENone, Invert.ENo,   WallCollidable.EYes,  WallAction.ENone, WallClimbable.EYes, DrawMethod.EAlwaysDraw, WallTex.ECarpet1,   null, 0, WallHealth.EUnbreakale, null, null ),
                        new Wall(   Others.EFloor3x3,       new LibVertex3.0f,   6.0f,   0.0f    )0.0f,   Scalation.ENone, Invert.ENo,   WallCollidable.EYes,  WallAction.ENone, WallClimbable.EYes, DrawMethod.EAlwaysDraw, WallTex.ECarpet1,   null, 0, WallHealth.EUnbreakale, null, null ),

                        new Wall(   Others.EWall2WindowSocket, new LibVertex6.0f,   3.0f,   0.0f    ), 0.0f,   Scalation.ENone, Invert.ENo,   WallCollidable.EYes,  WallAction.ENone, WallClimbable.ENo, DrawMethod.EAlwaysDraw, wallTex,   null, 0, WallHealth.EUnbreakale, null, null ),
                        new Wall(   Others.EWall1WindowSocket, new LibVertex4.0f,   3.0f,   0.0f    ), 0.0f,   Scalation.ENone, Invert.ENo,   WallCollidable.EYes,  WallAction.ENone, WallClimbable.ENo, DrawMethod.EAlwaysDraw, wallTex,   null, 0, WallHealth.EUnbreakale, null, null ),
                    }
            );

            Vector<Wall> allWallsV = new Vector<Wall>();
            allWallsV.addAll( Arrays.asList( wallsUp ) );
            allWallsV.addAll( Arrays.asList( wallsDown ) );
            allWallsV.addAll( Arrays.asList( wallsBasement ) );

            return new WallCollection
            (
                new Wall(       Others.EFloor3x3,   new LibVertexx,      y,      z       ),  initRotZ,   Scalation.ENone, Invert.ENo,   WallCollidable.EYes,  WallAction.ENone, WallClimbable.EYes, DrawMethod.EAlwaysDraw, WallTex.ECarpet1, null, 0, WallHealth.EUnbreakale, null, null ),
                allWallsV.toArray( new Wall[] {} )
            );
        }
View Full Code Here

                for ( int j = 0; j < sizeY; ++j )
                {
                    //skip base tile
                    if ( i > 0 || j > 0 )
                    {
                        allWalls.add( new Wall(       Others.EFloor1x1,   new LibVertex0.0f + i * 1.0f, 0.0f + j * 1.0f, 0.0f )0.0f,   Scalation.ENone, Invert.ENo,   WallCollidable.EYes,  WallAction.ENone, WallClimbable.EYes, DrawMethod.EAlwaysDraw, floorTex,   null, 0, WallHealth.EUnbreakale, null, null ) );
                    }

                    //margin celiling ( for glass ceilings )
                    if ( ceilingTex != null )
                    {
                        if ( j > 0 && j < ( sizeY - 1 ) && i > 0 && i < ( sizeX - 1 ) )
                        {
                            allWalls.add( new Wall(       Others.EFloor1x1,   new LibVertex0.0f + i * 1.0f, 0.0f + j * 1.0f, 2.5f )0.0f,   Scalation.ENone, Invert.ENo,   WallCollidable.EYes,  WallAction.ENone, WallClimbable.ENo, DrawMethod.EAlwaysDraw, ceilingTex, null, 0, WallHealth.EUnbreakale, null, null ) );
                        }
                    }

                    //draw corners
                    if ( i == 0 && j == 0 )
                    {
                        if ( left == WallStyle.EWindowsAndCeilingWindows || top == WallStyle.EWindowsAndCeilingWindows )
                        {
                            allWalls.add( new Wall(         Others.EFloor1x1,           new LibVertex0.0f, 0.0f,    2.5f       )0.0f,   Scalation.ENone, Invert.ENo,   WallCollidable.EYes,  WallAction.ENone, WallClimbable.ENo, DrawMethod.EAlwaysDraw, WallTex.EGlass1, null, 0, WallHealth.EGlass, null, null ) );
                        }
                        else if ( ceilingTex != null )
                        {
                            allWalls.add( new Wall(       Others.EFloor1x1,   new LibVertex0.0f, 0.0f, 2.5f )0.0f,   Scalation.ENone, Invert.ENo,   WallCollidable.EYes,  WallAction.ENone, WallClimbable.ENo, DrawMethod.EAlwaysDraw, ceilingTex, null, 0, WallHealth.EUnbreakale, null, null ) );
                        }
                    }
                    else if ( i == sizeX - 1 && j == 0 )
                    {
                        if ( left == WallStyle.EWindowsAndCeilingWindows || bottom == WallStyle.EWindowsAndCeilingWindows )
                        {
                            allWalls.add( new Wall(         Others.EFloor1x1,           new LibVertexsizeX - 1, 0.0f,    2.5f       )0.0f,   Scalation.ENone, Invert.ENo,   WallCollidable.EYes,  WallAction.ENone, WallClimbable.ENo, DrawMethod.EAlwaysDraw, WallTex.EGlass1, null, 0, WallHealth.EGlass, null, null ) );
                        }
                        else if ( ceilingTex != null )
                        {
                            allWalls.add( new Wall(       Others.EFloor1x1,   new LibVertexsizeX - 1.0f, 0.0f, 2.5f )0.0f,   Scalation.ENone, Invert.ENo,   WallCollidable.EYes,  WallAction.ENone, WallClimbable.ENo, DrawMethod.EAlwaysDraw, ceilingTex, null, 0, WallHealth.EUnbreakale, null, null ) );
                        }
                    }
                    else if ( i == sizeX - 1 && j == sizeY - 1 )
                    {
                        if ( bottom == WallStyle.EWindowsAndCeilingWindows || right == WallStyle.EWindowsAndCeilingWindows )
                        {
                            allWalls.add( new Wall(         Others.EFloor1x1,           new LibVertexsizeX - 1, sizeY - 1,    2.5f       )0.0f,   Scalation.ENone, Invert.ENo,   WallCollidable.EYes,  WallAction.ENone, WallClimbable.ENo, DrawMethod.EAlwaysDraw, WallTex.EGlass1, null, 0, WallHealth.EGlass, null, null ) );
                        }
                        else if ( ceilingTex != null )
                        {
                            allWalls.add( new Wall(       Others.EFloor1x1,   new LibVertexsizeX - 1, sizeY - 1, 2.5f )0.0f,   Scalation.ENone, Invert.ENo,   WallCollidable.EYes,  WallAction.ENone, WallClimbable.ENo, DrawMethod.EAlwaysDraw, ceilingTex, null, 0, WallHealth.EUnbreakale, null, null ) );
                        }
                    }
                    else if ( i == 0 && j == sizeY - 1 )
                    {
                        if ( top == WallStyle.EWindowsAndCeilingWindows || right == WallStyle.EWindowsAndCeilingWindows )
                        {
                            allWalls.add( new Wall(         Others.EFloor1x1,           new LibVertex0.0f, sizeY - 1,    2.5f       )0.0f,   Scalation.ENone, Invert.ENo,   WallCollidable.EYes,  WallAction.ENone, WallClimbable.ENo, DrawMethod.EAlwaysDraw, WallTex.EGlass1, null, 0, WallHealth.EGlass, null, null ) );
                        }
                        else if ( ceilingTex != null )
                        {
                            allWalls.add( new Wall(       Others.EFloor1x1,   new LibVertex0.0f, sizeY - 1, 2.5f )0.0f,   Scalation.ENone, Invert.ENo,   WallCollidable.EYes,  WallAction.ENone, WallClimbable.ENo, DrawMethod.EAlwaysDraw, ceilingTex, null, 0, WallHealth.EUnbreakale, null, null ) );
                        }
                    }
                }
            }

            //left wall
            for ( int i = 0; i < sizeX; ++i )
            {
                LibTexture ct = ( i == 0 || i == sizeX - 1 ? null : ceilingTex );
                if ( gapLeft != null && ( Lib.contains( gapLeft, i ) || Lib.contains( gapLeft, i - 1 ) ) )
                {
                    addStyledWall( allWalls, left, i * 1.0f, 0.0f, 180.0f, null, ct );
                }
                else
                {
                    addStyledWall( allWalls, left, i * 1.0f, 0.0f, 180.0f, wallTex, ct );
                }
            }

            //right wall
            for ( int i = 0; i < sizeX; ++i )
            {
                LibTexture ct = ( i == 0 || i == sizeX - 1 ? null : ceilingTex );
                if ( gapRight != null && ( Lib.contains( gapRight, i ) || Lib.contains( gapRight, i - 1 ) ) )
                {
                    addStyledWall( allWalls, right, 1.0f + i * 1.0f, sizeY, 0.0f, null, ct );
                }
                else
                {
                    addStyledWall( allWalls, right, 1.0f + i * 1.0f, sizeY, 0.0f, wallTex, ct );
                }
            }

            //top wall
            for ( int i = 0; i < sizeY; ++i )
            {
                LibTexture ct = ( i == 0 || i == sizeY - 1 ? null : ceilingTex );
                LibTexture wt = (  ( i == doorOffset || i == doorOffset + 1 ) && doorStyle != DoorStyle.ENoDoor ? null : wallTex );
                if ( gapTop != null && ( Lib.contains( gapTop, i ) || Lib.contains( gapTop, i - 1 ) ) )
                {
                    addStyledWall( allWalls, top, 0.0f, 1.0f + i * 1.0f, 90.0f, null, ct );
                }
                else
                {
                    addStyledWall( allWalls, top, 0.0f, 1.0f + i * 1.0f, 90.0f, wt, ct );
                    if ( wt == null && i == doorOffset )
                    {
                        allWalls.add( new Wall( Others.EWall2Door,  new LibVertex( 0.0f, 2.0f + i * 1.0f, 0.0f )90.0f,   Scalation.ENone, Invert.ENo,   WallCollidable.EYes,  WallAction.ENone, WallClimbable.EYes, DrawMethod.EAlwaysDraw, wallTex, null, 0, WallHealth.EUnbreakale, null, null ) );
                    }
                }
            }

            //bottom wall
            for ( int i = 0; i < sizeY; i += 1 )
            {
                LibTexture ct = ( i == 0 || i == sizeY - 1 ? null : ceilingTex );
                if ( gapBottom != null && ( Lib.contains( gapBottom, i ) || Lib.contains( gapBottom, i - 1 ) ) )
                {
                    addStyledWall( allWalls, bottom, sizeX, i * 1.0f, 270.0f, null, ct ); // wall tex is null!!
                }
                else
                {
                    addStyledWall( allWalls, bottom, sizeX, i * 1.0f, 270.0f, wallTex, ct );
                }
            }

            //Wall tile = new Wall(       Others.EFloor2x2,     new LibVertex(  0.0f,      0.0f,      0.0f       ),  0.0f,        Scalation.ENone, Invert.ENo,   WallCollidable.EYes,  WallAction.ENone, WallClimbable.EYes, DrawMethod.EAlwaysDraw, floorTex, null, WallEnergy.WallHealth.EUnbreakale, null, null );

            //add door
            //allWalls.add( tile );

            //add furtinure
            if ( furniture != null ) allWalls.addAll( Arrays.asList( furniture ) );

            //switch door style
            switch ( doorStyle )
            {
                case EAnchorDefault:
                {
                    Door door     = new Door( Others.EDoor1, x, y, z, rotZ, WallCollidable.EYes, doorAction, WallClimbable.ENo, doorTex, doorHealth, null, true, DoorSettings.DOOR_DEFAULT_AUTO_CLOSE_DELAY );
                    Wall baseTile = new Wall(       Others.EFloor1x1,   new LibVertex( 0.0f, 0.0f, 0.0f )0.0f,   Scalation.ENone, Invert.ENo,   WallCollidable.EYes,  WallAction.ENone, WallClimbable.EYes, DrawMethod.EAlwaysDraw, floorTex, null, 0, WallHealth.EUnbreakale, null, null );
                    allWalls.add( baseTile );

                    //translate all walls by door ..
                    for ( Wall w : allWalls )
                    {
                        w.translate( 0.0f, -doorOffset, 0.0f, LibTransformationMode.EOriginalsToOriginals );
                    }

                    //return right-anchored door
                    return new WallCollection
                    (
                        door,
                        allWalls.toArray( new Wall[] {} ),
                        new LibVertex
                        (
                            LibMath.sinDeg( rotZ ) * -2.0f,
                            LibMath.cosDeg( rotZ ) * 2.0f,
                            0.0f
                        ),
                        new LibVertex
                        (
                            0.0f,
                            0.0f,
                            0.0f
                        ),
                        false
                    );
                }

                case EAnchorInverted:
                {
                    Door door = new Door( Others.EDoor1, x, y, z, rotZ, WallCollidable.EYes, doorAction, WallClimbable.ENo, doorTex, doorHealth, null, true, DoorSettings.DOOR_DEFAULT_AUTO_CLOSE_DELAY );

                    Wall baseTile = new Wall(       Others.EFloor1x1,   new LibVertex0.0f, 0.0f, 0.0f )0.0f,   Scalation.ENone, Invert.ENo,   WallCollidable.EYes,  WallAction.ENone, WallClimbable.EYes, DrawMethod.EAlwaysDraw, floorTex, null, 0, WallHealth.EUnbreakale, null, null );
                    allWalls.add( baseTile );

                    //translate all walls by door ..
                    for ( Wall w : allWalls )
                    {
                        w.translate( 0.0f, -doorOffset, 0.0f, LibTransformationMode.EOriginalsToOriginals );
                    }

                    //return left-anchored door
                    return new WallCollection
                    (
                        door,
                        allWalls.toArray( new Wall[] {} ),
                        new LibVertex
                        (
                            LibMath.sinDeg( rotZ ) * 0.0f,
                            LibMath.cosDeg( rotZ ) * 0.0f,
                            0.0f
                        ),
                        new LibVertex
                        (
                            0.0f,
                            0.0f,
                            180.0f
                        ),
                        false
                    );
                }

                case ENoDoor:
                default:
                {
                    Wall baseTile = new Wall(       Others.EFloor1x1,   new LibVertexx, y, z ), rotZ,   Scalation.ENone, Invert.ENo,   WallCollidable.EYes,  WallAction.ENone, WallClimbable.EYes, DrawMethod.EAlwaysDraw, floorTex, null, 0, WallHealth.EUnbreakale, null, null );
                    return new WallCollection
                    (
                        baseTile,
                        allWalls.toArray( new Wall[] {} ),
                        null,
View Full Code Here

        public static final WallCollection createShelves( float x, float y, float z, float rotZ )
        {
            Vector<Wall> boxes = new Vector<Wall>();

            if ( LibMath.getRandom( 0, 2 ) == 0 ) boxes.add( new Wall(   Others.ECrate1, new LibVertex( -0.6f0.0f, 0.5f ), 0.0f, Scalation.ENone, Invert.ENo, WallCollidable.EYes, WallAction.ENone, WallClimbable.ENo, DrawMethod.EAlwaysDraw, WallTex.ECrate1, null, 0, WallHealth.ECrate, FXSize.ESmall, null ) );
            if ( LibMath.getRandom( 0, 2 ) == 0 ) boxes.add( new Wall(   Others.ECrate1, new LibVertex( -0.25f, 0.0f, 0.5f ), 0.0f, Scalation.ENone, Invert.ENo, WallCollidable.EYes, WallAction.ENone, WallClimbable.ENo, DrawMethod.EAlwaysDraw, WallTex.ECrate1, null, 0, WallHealth.ECrate, FXSize.ESmall, null ) );
            if ( LibMath.getRandom( 0, 2 ) == 0 ) boxes.add( new Wall(   Others.ECrate1, new LibVertex( 0.25f0.0f, 0.5f ), 0.0f, Scalation.ENone, Invert.ENo, WallCollidable.EYes, WallAction.ENone, WallClimbable.ENo, DrawMethod.EAlwaysDraw, WallTex.ECrate1, null, 0, WallHealth.ECrate, FXSize.ESmall, null ) );
            if ( LibMath.getRandom( 0, 2 ) == 0 ) boxes.add( new Wall(   Others.ECrate1, new LibVertex( 0.6f,   0.0f, 0.5f ), 0.0f, Scalation.ENone, Invert.ENo, WallCollidable.EYes, WallAction.ENone, WallClimbable.ENo, DrawMethod.EAlwaysDraw, WallTex.ECrate1, null, 0, WallHealth.ECrate, FXSize.ESmall, null ) );

            if ( LibMath.getRandom( 0, 2 ) == 0 ) boxes.add( new Wall(   Others.ECrate1, new LibVertex( -0.6f0.0f, 0.9f ), 0.0f, Scalation.ENone, Invert.ENo, WallCollidable.EYes, WallAction.ENone, WallClimbable.ENo, DrawMethod.EAlwaysDraw, WallTex.ECrate1, null, 0, WallHealth.ECrate, FXSize.ESmall, null ) );
            if ( LibMath.getRandom( 0, 2 ) == 0 ) boxes.add( new Wall(   Others.ECrate1, new LibVertex( -0.25f, 0.0f, 0.9f ), 0.0f, Scalation.ENone, Invert.ENo, WallCollidable.EYes, WallAction.ENone, WallClimbable.ENo, DrawMethod.EAlwaysDraw, WallTex.ECrate1, null, 0, WallHealth.ECrate, FXSize.ESmall, null ) );
            if ( LibMath.getRandom( 0, 2 ) == 0 ) boxes.add( new Wall(   Others.ECrate1, new LibVertex( 0.25f0.0f, 0.9f ), 0.0f, Scalation.ENone, Invert.ENo, WallCollidable.EYes, WallAction.ENone, WallClimbable.ENo, DrawMethod.EAlwaysDraw, WallTex.ECrate1, null, 0, WallHealth.ECrate, FXSize.ESmall, null ) );
            if ( LibMath.getRandom( 0, 2 ) == 0 ) boxes.add( new Wall(   Others.ECrate1, new LibVertex( 0.6f,   0.0f, 0.9f ), 0.0f, Scalation.ENone, Invert.ENo, WallCollidable.EYes, WallAction.ENone, WallClimbable.ENo, DrawMethod.EAlwaysDraw, WallTex.ECrate1, null, 0, WallHealth.ECrate, FXSize.ESmall, null ) );

            if ( LibMath.getRandom( 0, 2 ) == 0 ) boxes.add( new Wall(   Others.ECrate1, new LibVertex( -0.6f0.0f, 1.29f ), 0.0f, Scalation.ENone, Invert.ENo, WallCollidable.EYes, WallAction.ENone, WallClimbable.ENo, DrawMethod.EAlwaysDraw, WallTex.ECrate1, null, 0, WallHealth.ECrate, FXSize.ESmall, null ) );
            if ( LibMath.getRandom( 0, 2 ) == 0 ) boxes.add( new Wall(   Others.ECrate1, new LibVertex( -0.25f, 0.0f, 1.29f ), 0.0f, Scalation.ENone, Invert.ENo, WallCollidable.EYes, WallAction.ENone, WallClimbable.ENo, DrawMethod.EAlwaysDraw, WallTex.ECrate1, null, 0, WallHealth.ECrate, FXSize.ESmall, null ) );
            if ( LibMath.getRandom( 0, 2 ) == 0 ) boxes.add( new Wall(   Others.ECrate1, new LibVertex( 0.25f0.0f, 1.29f ), 0.0f, Scalation.ENone, Invert.ENo, WallCollidable.EYes, WallAction.ENone, WallClimbable.ENo, DrawMethod.EAlwaysDraw, WallTex.ECrate1, null, 0, WallHealth.ECrate, FXSize.ESmall, null ) );
            if ( LibMath.getRandom( 0, 2 ) == 0 ) boxes.add( new Wall(   Others.ECrate1, new LibVertex( 0.6f,   0.0f, 1.29f ), 0.0f, Scalation.ENone, Invert.ENo, WallCollidable.EYes, WallAction.ENone, WallClimbable.ENo, DrawMethod.EAlwaysDraw, WallTex.ECrate1, null, 0, WallHealth.ECrate, FXSize.ESmall, null ) );

            if ( LibMath.getRandom( 0, 2 ) == 0 ) boxes.add( new Wall(   Others.ECrate1, new LibVertex( -0.6f0.0f, 1.69f ), 0.0f, Scalation.ENone, Invert.ENo, WallCollidable.EYes, WallAction.ENone, WallClimbable.ENo, DrawMethod.EAlwaysDraw, WallTex.ECrate1, null, 0, WallHealth.ECrate, FXSize.ESmall, null ) );
            if ( LibMath.getRandom( 0, 2 ) == 0 ) boxes.add( new Wall(   Others.ECrate1, new LibVertex( -0.25f, 0.0f, 1.69f ), 0.0f, Scalation.ENone, Invert.ENo, WallCollidable.EYes, WallAction.ENone, WallClimbable.ENo, DrawMethod.EAlwaysDraw, WallTex.ECrate1, null, 0, WallHealth.ECrate, FXSize.ESmall, null ) );
            if ( LibMath.getRandom( 0, 2 ) == 0 ) boxes.add( new Wall(   Others.ECrate1, new LibVertex( 0.25f0.0f, 1.69f ), 0.0f, Scalation.ENone, Invert.ENo, WallCollidable.EYes, WallAction.ENone, WallClimbable.ENo, DrawMethod.EAlwaysDraw, WallTex.ECrate1, null, 0, WallHealth.ECrate, FXSize.ESmall, null ) );
            if ( LibMath.getRandom( 0, 2 ) == 0 ) boxes.add( new Wall(   Others.ECrate1, new LibVertex( 0.6f,   0.0f, 1.69f ), 0.0f, Scalation.ENone, Invert.ENo, WallCollidable.EYes, WallAction.ENone, WallClimbable.ENo, DrawMethod.EAlwaysDraw, WallTex.ECrate1, null, 0, WallHealth.ECrate, FXSize.ESmall, null ) );

            return new WallCollection
            (
                new Wall(   Others.EShelves1, new LibVertexx, y, z ), rotZ, Scalation.ENone, Invert.ENo, WallCollidable.EYes, WallAction.ENone, WallClimbable.ENo, DrawMethod.EAlwaysDraw, WallTex.EWood1, null, 0, WallHealth.ESolidWood, FXSize.ELarge, null ),

                //boxes
                boxes.toArray( new Wall[] {} )
            );
        }
View Full Code Here

TOP

Related Classes of de.christopherstock.shooter.g3d.wall.Wall

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.