Ejemplo n.º 1
0
        static void fun_playerMoved(int playerId)
        {
            Point      point  = DllInterface.getLastShotPoint();
            ShotResult result = DllInterface.getLastShotResult();

            Console.WriteLine("Player " + playerId + " shooted field (" + point.x + ", " + point.y + ") with result: " + result + ".");
            printBoardImage(DllInterface.getBoardImage(DllInterface.getLastShotBoard()));
            //printShipList(DllInterface.getShipList(DllInterface.getLastShotBoard()));
        }
Ejemplo n.º 2
0
 static void fun_boardCreated(int boardId)
 {
     Console.WriteLine("Board {0} created", boardId);
     printBoardImage(DllInterface.getBoardImage(boardId));
 }