Public Member Functions | |
| IWFile (StarTrekEngine *vm, const Common::String &filename) | |
| int | getNumEntries () |
| int | getClosestKeyPosition (int16 x, int16 y) |
| List of "key positions" used for pathing. More... | |
Public Attributes | |
| Common::Point | _keyPositions [MAX_KEY_POSITIONS] |
| byte | _iwEntries [MAX_KEY_POSITIONS][MAX_KEY_POSITIONS] |
| int StarTrek::IWFile::getClosestKeyPosition | ( | int16 | x, |
| int16 | y | ||
| ) |
List of "key positions" used for pathing.
Returns the index of the nearest "key position" in the room that an object can walk to (in a straight line) from a given position.
| Common::Point StarTrek::IWFile::_keyPositions[MAX_KEY_POSITIONS] |
_iwEntries[i][j] is the index of the next key position to move to, when one is already at key position "i" and is trying to get to key position "j".