Exemplo n.º 1
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");
        }
Exemplo n.º 2
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");
        }
Exemplo n.º 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");
        }
Exemplo n.º 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");
        }
Exemplo n.º 5
0
        public Base(int x, int y)
        {
            model = new OBJModel(Game.resourcePath + "/Base/dark_khaki.obj");
            //cube = new CubeModel();

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

            PosX = x; PosY = y;
        }
Exemplo n.º 6
0
        public Base(int x, int y)
        {
            model = new OBJModel(Game.resourcePath + "/Base/dark_khaki.obj");
            //cube = new CubeModel();

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

            PosX = x; PosY = y;
        }
Exemplo n.º 7
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");
        }
Exemplo n.º 8
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");
        }