예제 #1
0
        public Snake(SnakeGame game, Point start, int length, Color c)
        {
            mSnakeGame = game;

            //Add the head, always needed
            mBody.Add(start);

            //Add the rest of the body
            ExtendSnake(length - 1);

            mAI           = new AIastar();
            mAI.SnakeGame = mSnakeGame;

            mColour = c;
        }