List of all members.
Constructor & Destructor Documentation
| IsoBlock::IsoBlock |
( |
const std::string & |
filePath |
) |
|
| IsoBlock::IsoBlock |
( |
int |
width, |
|
|
int |
height, |
|
|
TileSet & |
tset | |
|
) |
| | |
| IsoBlock::~IsoBlock |
( |
|
) |
[inline] |
Member Function Documentation
| void IsoBlock::draw |
( |
|
) |
[private, virtual] |
Does the actual drawing of the map.
- Todo:
- We should probably build a list of Entities that need to be drawn this frame by examining each of them and determining which of them will actually be visible on the screen (or close to visible). Then the actual draw loop will run through those entities and draw them as necessary. However, I see this method as being very slow. We'll have to test this and see how it works. It may be easier to have the entities listed with an attached tile coordinate using an algorithim to determine roughly which tile they're on using the above tile coordinate finding approach. Then during rendering the drawing routine only needs to check in those coordinates for an entity and can determine rendering offsets that way. As the Map class itself is not responsible for actually performing Entity location calculations, entity tile locations can be updated whenever the map is notified of just such an update. At the same time, the map class purely keeps a list of the Entities but doesn't actually modify any of their locations so we may just have to do this on the fly and hope for the best.
- Todo:
- This is a decision that can be made outside of this function.
Implements Map.
The documentation for this class was generated from the following files: