A track level.
More...
#include <Track.h>
A track level.
- Author
- Michael Imamura
| HoverRace::Model::Track::Track |
( |
| ) |
|
|
privatedelete |
| HoverRace::Model::Track::Track |
( |
const std::string & |
name, |
|
|
std::shared_ptr< Parcel::RecordFile > |
recFile = {} |
|
) |
| |
Constructor.
- Parameters
-
| name | The name of the track. |
| recFile | The record file to load the track from (may be nullptr if in-memory only). |
- Exceptions
-
| HoverRace::Model::Track::~Track |
( |
| ) |
|
|
virtual |
| void HoverRace::Model::Track::AddFreeElement |
( |
std::shared_ptr< Model::FreeElementBase > |
elem | ) |
|
|
inline |
| double HoverRace::Model::Track::GetGravity |
( |
| ) |
const |
|
inline |
Gets the gravity multiplier.
- Returns
- The gravity multiplier (1.0 is normal gravity).
| const TrackEntry& HoverRace::Model::Track::GetHeader |
( |
| ) |
const |
|
inline |
| Level* HoverRace::Model::Track::GetLevel |
( |
| ) |
const |
|
inline |
| const Vec2& HoverRace::Model::Track::GetOffset |
( |
| ) |
const |
|
inline |
Retrieve the coordinates of the north-west corner of the track.
- Returns
- The coordinates, or (0, 0) if the track hasn't been loaded.
| const Vec2& HoverRace::Model::Track::GetSize |
( |
| ) |
const |
|
inline |
Retrieve the size of the track.
- Returns
- The size, or (0, 0) if the track hasn't been loaded.
| void HoverRace::Model::Track::Load |
( |
bool |
allowRendering, |
|
|
const GameOptions & |
gameOpts |
|
) |
| |
| void HoverRace::Model::Track::LoadHeader |
( |
| ) |
|
|
private |
| void HoverRace::Model::Track::LoadLevel |
( |
bool |
allowRendering, |
|
|
const GameOptions & |
gameOpts |
|
) |
| |
|
private |
| void HoverRace::Model::Track::LoadMap |
( |
| ) |
|
|
private |
| void HoverRace::Model::Track::SetGravity |
( |
double |
gravity | ) |
|
|
inline |
Set the current gravity multiplier.
- Parameters
-
| gravity | The gravity multiplier (1.0 is normal gravity). |
| std::list<std::shared_ptr<Model::FreeElementBase> > HoverRace::Model::Track::freeElements |
|
private |
| std::unique_ptr<Level> HoverRace::Model::Track::level |
|
private |
| Vec2 HoverRace::Model::Track::offset |
|
private |
| Vec2 HoverRace::Model::Track::size |
|
private |
The documentation for this class was generated from the following files: