コード例 #1
0
ファイル: Player.cs プロジェクト: mxgmn/GENW
    public Player()
    {
        shape = new GlobalShape();
        shape.name = "Karl";
        shape.speed = 1.0f;
        shape.isActive = true;
        uniqueName = shape.name;

        inventory.isInParty = true;
        inventory.globalOwner = this;

        LocalObject c1 = new LocalObject(shape.name, Race.Get("Human"), CharacterClass.Get("Fighter"),
            Background.Get("Engineer"), Origin.Get("The Withered West"), 0);
        c1.inventory.Add("Staff");
        party.Add(c1);

        //LocalObject c2 = new LocalObject("Nicolas", Race.Get("Floran"), CharacterClass.Get("Seer"), Background.Get("Hunter"), Origin.Get("Eden"), 140);
        //party.Add(c2);

        party.Add(new LocalObject(LocalShape.Get("Krokar"), "Boo-Boo"));

        inventory.Add("Inperium Coins", 4);
        inventory.Add("Alliance Coins", 10);
        inventory.Add("Bottle of Water", 2);
        inventory.Add("King Bolete", 3);
        inventory.Add("Potato", 5);
    }
コード例 #2
0
ファイル: GlobalObject.cs プロジェクト: mxgmn/GENW
    public GlobalObject(GlobalShape shapei)
    {
        shape = shapei;
        dialog = shapei.dialog;

        foreach (KeyValuePair<string, int> pair in shape.partyShape)
            for (int i = 0; i < pair.Value; i++)
                party.Add(new LocalObject(LocalShape.Get(pair.Key)));

        initiative = -0.1f;
    }