public Blob(Blob existingBlob) { id = Guid.NewGuid(); state = new SearchingState(this); this.props = existingBlob.GetBlobProps(); this.position = new RadialPosition(existingBlob.GetPosition()); this.home = new RadialPosition(existingBlob.GetHome()); this.satiety = Satiety.None; }
public Blob(BlobProps props) { id = Guid.NewGuid(); state = new SearchingState(this); this.props = props; this.position = new RadialPosition(); this.home = new RadialPosition(); this.satiety = Satiety.None; }
public void SetSatiety(Satiety satiety) { // TODO: Fix this Dictionary <Satiety, int> ordering = new Dictionary <Satiety, int>(); ordering.Add(Satiety.None, 0); ordering.Add(Satiety.Half, 1); ordering.Add(Satiety.Full, 2); if (ordering[satiety] < ordering[this.satiety]) { return; } this.satiety = satiety; }