示例#1
0
文件: Base.cs 项目: angjminer/rawbots
        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");
        }
示例#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");
        }
示例#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");
        }
示例#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");
        }
示例#5
0
文件: Base.cs 项目: angjminer/rawbots
        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;
        }
示例#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;
        }
示例#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");
        }
示例#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");
        }