-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Moved data files to model. Need to add gitignore. Added class for man…
…aging data
- Loading branch information
1 parent
5ab1ce9
commit 0c9e598
Showing
31 changed files
with
80 additions
and
49 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
Binary file modified
BIN
+2.75 MB
(110%)
Risk/.vs/Risk/v15/ipch/AutoPCH/104a2ab354d1f0dd/CONTINENT.ipch
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
Risk/.vs/Risk/v15/ipch/AutoPCH/a68c4ecb24a4f4bb/TERRITORY.ipch
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,2 @@ | ||
Continent.cpp | ||
Source.cpp | ||
Territory.cpp | ||
Generating Code... | ||
Source.cpp | ||
Risk.vcxproj -> D:\MyFiles\git\Risk\Risk\Debug\Risk.exe |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#include "GameBoard.h" | ||
|
||
void GameBoard::InitializeBoard() | ||
{ | ||
// TODO: implement | ||
int i = 0; | ||
} | ||
|
||
// TODO: Determine if the initializer list here is necessary -- we may be able to forgo this | ||
GameBoard::GameBoard() : _continents() | ||
{ | ||
InitializeBoard(); | ||
} | ||
|
||
Continent GameBoard::getContinent(string name) | ||
{ | ||
// TODO: implement | ||
return _continents[0]; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#pragma once | ||
using namespace std; | ||
#include <vector> | ||
#include <string> | ||
|
||
#include "Model\Continent.h" | ||
|
||
class GameBoard | ||
{ | ||
private: | ||
vector<Continent> _continents; | ||
void InitializeBoard(); | ||
public: | ||
GameBoard(); | ||
Continent getContinent(string name); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#pragma once | ||
#include <string> | ||
using namespace std; | ||
|
||
struct Army | ||
{ | ||
enum _team {RED, GREEN, BLUE, BLACK, YELLOW}; | ||
int _numberOfTroops; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#pragma once | ||
using namespace std; | ||
#include <string> | ||
|
||
#include "Army.h" | ||
|
||
struct Territory | ||
{ | ||
string _name; | ||
Army _occupyingArmy; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,15 @@ | ||
using namespace std; | ||
#include <iostream> | ||
#include <string> | ||
#include <map> | ||
|
||
#include "Continent.h" | ||
#include "Model/Continent.h" | ||
|
||
int main() | ||
{ | ||
Continent continent("Africa"); | ||
string name = continent.getName(); | ||
Continent continent; | ||
continent._name = "Africa"; | ||
|
||
cout << "Hello World!" << endl; | ||
cout << "name: " << name << endl; | ||
cout << "name: " << continent._name << endl; | ||
return 0; | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,11 @@ | ||
#pragma once | ||
#include <string> | ||
using namespace std; | ||
#include <string> | ||
|
||
#include "Army.h" | ||
|
||
class Territory | ||
struct Territory | ||
{ | ||
private: | ||
string _name; | ||
public: | ||
Territory(string name); | ||
string getName(); | ||
Army _occupyingArmy; | ||
}; |