|
Pacman
1.0
Pacman game
|
Intersection class. Plus de détails...
#include <Intersection.h>
Fonctions membres publiques | |
| Intersection (int x, int y) | |
| Construct a new Intersection object. Plus de détails... | |
| ~Intersection () | |
| int | getX () const |
| int | getY () const |
| void | setUp (std::shared_ptr< Intersection > up) |
| std::shared_ptr< Intersection > | getUp () const |
| void | setDown (std::shared_ptr< Intersection > down) |
| std::shared_ptr< Intersection > | getDown () const |
| void | setLeft (std::shared_ptr< Intersection > left) |
| std::shared_ptr< Intersection > | getLeft () const |
| void | setRight (std::shared_ptr< Intersection > right) |
| std::shared_ptr< Intersection > | getRight () const |
| std::vector< std::shared_ptr< Intersection > > | getOptions () const |
| Get the Options object. Plus de détails... | |
| int | getDirection (std::shared_ptr< Intersection > dest) const |
| Get the Direction object. Plus de détails... | |
Attributs privés | |
| int | x_pixel |
| int | y_pixel |
| std::shared_ptr< Intersection > | up = nullptr |
| std::shared_ptr< Intersection > | down = nullptr |
| std::shared_ptr< Intersection > | left = nullptr |
| std::shared_ptr< Intersection > | right = nullptr |
Intersection class.
class represents an intersection in the maze. It contains the x and y coordinates of the intersection, as well as pointers to the intersections that are up, down, left, and right of it.
| Intersection::Intersection | ( | int | x, |
| int | y | ||
| ) |
Construct a new Intersection object.
| x | |
| y |
| Intersection::~Intersection | ( | ) |
| int Intersection::getDirection | ( | std::shared_ptr< Intersection > | dest | ) | const |
Get the Direction object.
| dest |
| std::shared_ptr< Intersection > Intersection::getDown | ( | ) | const |
| std::shared_ptr< Intersection > Intersection::getLeft | ( | ) | const |
| std::vector< std::shared_ptr< Intersection > > Intersection::getOptions | ( | ) | const |
Get the Options object.
| std::shared_ptr< Intersection > Intersection::getRight | ( | ) | const |
| std::shared_ptr< Intersection > Intersection::getUp | ( | ) | const |
| int Intersection::getX | ( | ) | const |
| int Intersection::getY | ( | ) | const |
| void Intersection::setDown | ( | std::shared_ptr< Intersection > | down | ) |
| void Intersection::setLeft | ( | std::shared_ptr< Intersection > | left | ) |
| void Intersection::setRight | ( | std::shared_ptr< Intersection > | right | ) |
| void Intersection::setUp | ( | std::shared_ptr< Intersection > | up | ) |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |