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); }
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); }
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); }