Represents a snake on a battle field.
Esempio n. 1
0
        internal BattleSnake GetTailOwner(BattleSnake snake, MoveDirection moveDirection)
        {
           //var coordinates =  GetRelativeToMoveDirectionCoordinates(snake, moveDirection); //translate relative coordinates to absolute
           //var tailOwner = snakes.Where(snake => snake.Tail.Coordinates == coordinates).SingleOrDefault():
           /* 
            * return tailOwner;
            */

            throw new NotImplementedException();
        }
Esempio n. 2
0
 internal VisibleArea GetVisibleAreaFor(BattleSnake snake)
 {
     throw new NotImplementedException();
     //return GetVisibleAreaInternal(snake.SizeOfVisibleArea, GetHeadPosition(snake));
 }
Esempio n. 3
0
 private void Bite(BattleSnake snakeToBite)
 {
     //fire event: eventBus.Publish(new SnakeBittenEvent(this, snakeToBite))
     snakeToBite.Shorten();
     this.MakeLonger();
 }