Пример #1
0
    public RawSlime Split(TileData toSplit)
    {
        float newmass = (mass / 2.0f);

        this.mass = newmass;
        RawSlime newSlime = new RawSlime(newmass, elementType, element, toSplit);

        newSlime.SetPlayer(player);
        player.AddSlime(newSlime);
        return(newSlime);
    }
Пример #2
0
    public RawPlayer GetCopy()
    {
        RawPlayer       rawPlayer = new RawPlayer(id, turnActions, statsCoreInfo, actionsPerSlime);
        List <RawSlime> rawSlimes = new List <RawSlime>();

        foreach (RawSlime sl in slimes)
        {
            RawSlime rawSl = sl.GetCopy();
            rawSl.SetPlayer(rawPlayer);
            rawSlimes.Add(rawSl);
        }
        rawPlayer.SetSlimes(rawSlimes);
        return(rawPlayer);
    }
Пример #3
0
    public RawPlayer GetRawCopy()
    {
        RawPlayer       rawPlayer = new RawPlayer(id, actions, statsCoreInfo, statsCoreInfo.slimeCountActionGain);
        List <RawSlime> rawSlimes = new List <RawSlime>();

        foreach (Slime sl in slimes)
        {
            RawSlime rawSl = sl.GetRawCopy();
            rawSl.SetPlayer(rawPlayer);
            rawSlimes.Add(rawSl);
        }
        rawPlayer.SetSlimes(rawSlimes);
        return(rawPlayer);
    }