public void TestCaptureThrowsNullReferenceException559()
        {
            Tuple <global::HexTiling.HexCoords, global::GameState.PlayerId> tuple;

            tuple = new Tuple <global::HexTiling.HexCoords, global::GameState.PlayerId>
                        ((global::HexTiling.HexCoords)null, (global::GameState.PlayerId)null);
            global::Units.UnitInfo[][] unitInfoss = new global::Units.UnitInfo[0][];
            Tuple <global::HexTiling.HexCoords,
                   global::Resource.Resource, FSharpOption <global::GameState.PlayerId> >[] tuples
                = new Tuple <global::HexTiling.HexCoords,
                             global::Resource.Resource, FSharpOption <global::GameState.PlayerId> > [0];
            Tuple <global::HexTiling.HexCoords, global::GameState.PlayerId>[] tuples1_
                        = new Tuple <global::HexTiling.HexCoords, global::GameState.PlayerId> [10];
            tuples1_[0] = tuple;
            tuples1_[1] = tuple;
            tuples1_[2] = tuple;
            tuples1_[3] = tuple;
            tuples1_[4] = tuple;
            tuples1_[5] = tuple;
            tuples1_[6] = tuple;
            tuples1_[7] = tuple;
            tuples1_[8] = tuple;
            tuples1_[9] = tuple;
            ((GameStateUpdateTests)this).TestCapture
                ((global::Terrain.Terrain[, ])null, unitInfoss, tuples, tuples1_);
        }
Exemple #2
0
    public static global::Units.UnitInfo CreateUnitInfo(
        global::HexTiling.HexCoords coords_hexCoords, float health_f,
        int t, bool isDocked, int fuel, Units.BomberTransport bt,
        Units.CarriedAircraft[] aircrafts, Units.TransportedUnit[] tu)
    {
        global::Units.UnitInfo unitInfo
            = new global::Units.UnitInfo(coords_hexCoords, health_f, (Units.UnitTypes)CreateUnitTypes(t, isDocked, fuel, bt, aircrafts, tu));
        return(unitInfo);

        // TODO: Edit factory method of UnitInfo
        // This method should be able to configure the object in all possible ways.
        // Add as many parameters as needed,
        // and assign their values to each field by using the API.
    }