Brandon Donohue / Mbed 2 deprecated IoTBattleship

Dependencies:   mbed

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers Player.h Source File

Player.h

00001 #include <iostream>
00002 #include <string.h>
00003 #include "globals.h"
00004 
00005 //CODE
00006 //0 = water
00007 //1 = shot fired
00008 //2 = ship
00009 class Player {
00010 public:
00011     explicit Player();
00012     ~Player();
00013     void PrintBoard(); 
00014     void PrintEnemyBoard(); 
00015     void Shot(int i, int j, int hit);
00016     int EnemyShot(int i, int j);
00017     void PlaceShips(int i, int j);
00018     int getColor(int i, int j);
00019     int getEnemyColor(int i, int j);
00020     bool presetShips(int con);
00021     
00022 private:
00023     int** board;
00024     int** enemyBoard;
00025 };
00026