Exemple #1
0
 internal FastSnake(FastSnake other, FastWorld world)
 {
     this.Tail             = other.Tail;
     this.index            = other.index;
     this.Status           = other.Status;
     this.MaxLength        = other.MaxLength;
     this.PendingMaxLength = other.PendingMaxLength;
     this.world            = world;
     this.Head             = other.Head;
     this.Health           = other.Health;
     this.Length           = other.Length;
 }
Exemple #2
0
 internal FastSnake(FastWorld world, int index, Coord initialHeadPosition)
 {
     this.world       = world;
     this.index       = index;
     MaxLength        = 3;
     PendingMaxLength = MaxLength;
     Length           = 1;
     Status           = Status.Alive;
     Health           = 100;
     Head             = initialHeadPosition;
     Tail             = initialHeadPosition;
 }