-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPMap.cpp
More file actions
53 lines (43 loc) · 1.11 KB
/
PMap.cpp
File metadata and controls
53 lines (43 loc) · 1.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
// ---------------------------------------------------------------------
// PMap Implementation
// ---------------------------------------------------------------------
#include "PMap.h"
#include <iostream>
using namespace std;
using namespace CoreStructures;
// ---------------------------------------------------------------------
// PRIVATE
// ---------------------------------------------------------------------
// ---------------------------------------------------------------------
// PUBLIC
// ---------------------------------------------------------------------
// Constructor
PMap::PMap()
{
// Set Initial values
// Initialise map values
for(int i = 0; i < 20; i += 1)
for(int j = 0; j < 20; j += 1)
map[j][i] = 0;
}
// Deconstructor
PMap::~PMap()
{
// Empty
}
// Initialise
// Precondition: n/a
// Postcondition: Map objects initialised
void PMap::Initialise()
{
// Initialise map objects
ground.Initialise();
}
// Render
// Precondition: Camera matrix
// Postcondition: Map objects rendered
void PMap::Render(const GUMatrix4& T)
{
// Render all of the objects associated with the map
ground.Render(T);
}