Updates about the small exercises.
This commit is contained in:
parent
125c55f176
commit
8a992f19c0
1 changed files with 2 additions and 1 deletions
|
@ -10,6 +10,7 @@ Add a function that will check if a cell on the board is a wall. Then use that f
|
|||
One of the PacMan ghosts is missing and we will implement this ghost later. But for now, let's add the cpp and hpp files and run CMake to see the file added to our project. Then let's create an empty class called Blinky that looks like the other Ghost classes but it can be empty at this time. Where are the graphics for Blinky in the assets file and how can we make sure the ghost will be correctly rendered?
|
||||
|
||||
# Memory and RAII
|
||||
(corentin: maybe something about } that destroys things)
|
||||
We are going to play with using std::unique_ptr as we discussed in the slides. Since we will be reverting these changes back, do take a copy of the GameState files before we start. We will change PacMan within GameState into a std::unique_ptr<PacMan>, once this has been done the code will not compile, because there are further changes needed within the GameState class. Go through and figure out what needs to be updated. Can we change one of the ghosts into a std::unique_ptr? Are there any current design problems we will run into? What do these design issues say about ownership of data?
|
||||
|
||||
# Classes and Structs
|
||||
|
@ -22,7 +23,7 @@ waage: Maybe the "isIntersection" for the AI. Create an array of GridPosition an
|
|||
?
|
||||
|
||||
# Iterators and algorithms
|
||||
waage: Do we add iterators to the Position or GridPosition classes? How about for the Board, so you can iterate through rows/columns?
|
||||
Use algorithms in Pellet and SuperPellet
|
||||
|
||||
# Lambdas and Function Templates
|
||||
?
|
||||
|
|
Loading…
Reference in a new issue