Пример #1
0
 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;
 }
Пример #2
0
 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;
 }
Пример #3
0
 public void SetBlobState(BlobState state)
 {
     this.state = state;
 }