Creates a Map object.
More...
#include <map.h>
| Map::Map |
( |
Texture * |
inSheet, |
|
|
std::string |
fileName |
|
) |
| |
Constructs a Map object
- Parameters
-
| Texture* | A pointer to the spritesheet Texture |
| std::string | The file location |
| Vec2 Map::getInitialBotA |
( |
| ) |
|
Getter # Gets the initial BotA position
- Returns
- Vec2 The initial BotA position
| Vec2 Map::getInitialBotB |
( |
| ) |
|
Getter # Gets the initial BotB position
- Returns
- Vec2 The initial BotB position
| Vec2 Map::getInitialPlayer |
( |
| ) |
|
Getter # Gets the initial Player position
- Returns
- Vec2 The initial Player position
| int Map::getMapPositionIndex |
( |
int |
x, |
|
|
int |
y |
|
) |
| |
Getter # Gets the index Gets the index stored in the Map at the given position
- Parameters
-
| int | The x index of the map |
| int | The y index of the map |
- Returns
- int The index
| char Map::getMapPositionType |
( |
int |
x, |
|
|
int |
y |
|
) |
| |
Getter # Gets the type Gets the type stored in the Map at the given position
- Parameters
-
| int | The x index of the map |
| int | The y index of the map |
- Returns
- char The type
| int Map::getNumberOfWalls |
( |
| ) |
|
Getter # Gets the number of Wall objects
- Returns
- int The number of Wall objects
| int Map::getNumberOfXObjects |
( |
| ) |
|
Getter # Gets the number of x objects (in a row of the map)
- Returns
- int The number of x objects (in a row of the map)
| int Map::getNumberOfYObjects |
( |
| ) |
|
Getter # Gets the number of y objects (rows of the map)
- Returns
- int The number of y objects (rows of the map)
| Wall * Map::getWall |
( |
int |
i | ) |
|
Getter # Gets the Wall Gets the Wall stored in the array at the given index
- Parameters
-
- Returns
- Wall * A pointer to the Wall
| void Map::loadMap |
( |
std::string |
fileName | ) |
|
|
private |
Loads the Map
- Parameters
-
| std::string | The file location |
| std::vector<std::vector<id*> > Map::map |
|
private |
| std::vector<Wall*> Map::walls |
|
private |
The documentation for this class was generated from the following files:
- AIAssignment1LineOfSight/map.h
- AIAssignment1LineOfSight/map.cpp