Exemple #1
0
        public MissilesWeapon()
        {
            inCylinderRadius = 0.1f;
            inCylinderHeight = 1.0f;
            inCylinder       = new CylinderModel(inCylinderRadius, inCylinderHeight);
            inCylinder.SetColor(0.4f, 0.5f, 0.6f);

            outCylinderRadius = 0.15f;
            outCylinderHeight = 0.3f;
            outCylinder       = new CylinderModel(outCylinderRadius, outCylinderHeight);
            outCylinder.SetColor(0.0f, 0.7f, 0.6f);

            middleBox = new CubeModel();
            middleBox.SetColor(0.1f, 0.3f, 0.3f);

            frame = new CubeModel();
            frame.SetColor(0.1f, 1.0f, 0.0f);
            SetHeight(0.75f);

            material = new Material(Material.MaterialType.SHINY_STEEL);
            inCylinder.AssignMaterial(material);
            outCylinder.AssignMaterial(material);
            middleBox.AssignMaterial(material);
            frame.AssignMaterial(material);

            model = new OBJModel(Game.resourcePath + "/Missile/Missile.obj");
        }
Exemple #2
0
        private double cylinderRadius; //antenna

        #endregion Fields

        #region Constructors

        public Base()
        {
            /*
             * By far the best system, it simply flies over the
             * ground whatever its difficulties. This is the
             * only chassis that can span ravines!
             */

            //cube = new CubeModel();

            cylinderHeight = 0.5f;
            cylinderRadius = 0.03f;
            cylinder = new CylinderModel(cylinderRadius, cylinderHeight);
            cylinder.SetColor(0.2f, 0.2f, 0.2f);

            PosX = 0; PosY = 0;

            material = new Material(Material.MaterialType.SILK);
            cylinder.AssignMaterial(material);

            material = new Material(Material.MaterialType.CONCRETE);
            //cube.AssignMaterial(material);

            model = new OBJModel(Game.resourcePath + "/Base/dark_khaki.obj");
        }
Exemple #3
0
        public MissilesWeapon()
        {
            inCylinderRadius = 0.1f;
            inCylinderHeight = 1.0f;
            inCylinder = new CylinderModel(inCylinderRadius, inCylinderHeight);
            inCylinder.SetColor(0.4f, 0.5f, 0.6f);

            outCylinderRadius = 0.15f;
            outCylinderHeight = 0.3f;
            outCylinder = new CylinderModel(outCylinderRadius, outCylinderHeight);
            outCylinder.SetColor(0.0f, 0.7f, 0.6f);

            middleBox = new CubeModel();
            middleBox.SetColor(0.1f, 0.3f, 0.3f);

            frame = new CubeModel();
            frame.SetColor(0.1f, 1.0f, 0.0f);
            SetHeight(0.75f);

            material = new Material(Material.MaterialType.SHINY_STEEL);
            inCylinder.AssignMaterial(material);
            outCylinder.AssignMaterial(material);
            middleBox.AssignMaterial(material);
            frame.AssignMaterial(material);

            model = new OBJModel(Game.resourcePath + "/Missile/Missile.obj");
        }
Exemple #4
0
        public Base()
        {
            /*
             * By far the best system, it simply flies over the
             * ground whatever its difficulties. This is the
             * only chassis that can span ravines!
             */

            //cube = new CubeModel();

            cylinderHeight = 0.5f;
            cylinderRadius = 0.03f;
            cylinder       = new CylinderModel(cylinderRadius, cylinderHeight);
            cylinder.SetColor(0.2f, 0.2f, 0.2f);

            PosX = 0; PosY = 0;

            material = new Material(Material.MaterialType.SILK);
            cylinder.AssignMaterial(material);

            material = new Material(Material.MaterialType.CONCRETE);
            //cube.AssignMaterial(material);

            model = new OBJModel(Game.resourcePath + "/Base/dark_khaki.obj");
        }
Exemple #5
0
        public NuclearWeapon()
        {
            radius = 1.0f;
            height = 1.0f;

            /* slices = 8, stacks = 1 */

            mcComponent = new CylinderModel(radius, height);
            mcComponent.setSlices(8);
            mcComponent.setStacks(1);

            material = new Material(Material.MaterialType.SHINY_STEEL);
            mcComponent.AssignMaterial(material);

            model = new OBJModel(Game.resourcePath + "/Nuclear/Nuclear.obj");
        }
Exemple #6
0
        public NuclearWeapon()
        {
            radius = 1.0f;
            height = 1.0f;

            /* slices = 8, stacks = 1 */

            mcComponent = new CylinderModel(radius, height);
            mcComponent.setSlices(8);
            mcComponent.setStacks(1);

            material = new Material(Material.MaterialType.SHINY_STEEL);
            mcComponent.AssignMaterial(material);

            model = new OBJModel(Game.resourcePath + "/Nuclear/Nuclear.obj");
        }