|
|
| AssetManager (Manager *manager) |
| |
|
void | createProjectile (Vector2D pos, Vector2D velocity, int scale, int range, int speed, const char *texturePath, Entity *owner) |
| |
|
void | createPowerup (Vector2D pos, std::function< void(Entity *)> pickupFunc, std::string texturePath) |
| |
| Vector2D | calculateSpawnPosition (Vector2D size, Vector2D spawnArea) |
| | Calculates a random spawn position for an object within a given area.
|
| |
|
template<typename T > |
| T | calculateRandomType (int amount) |
| |
|
void | addTexture (std::string id, const char *path) |
| |
|
void | addSoundEffect (std::string id, const char *path) |
| |
|
void | addMusic (std::string id, const char *path) |
| |
|
SDL_Texture * | getTexture (std::string id) |
| |
|
Mix_Chunk * | getSound (std::string id) |
| |
|
Mix_Music * | getMusic (std::string id) |
| |
◆ calculateSpawnPosition()
Calculates a random spawn position for an object within a given area.
- Parameters
-
| size | The size (collision box) of the object |
| spawnArea | The area within which a spawn position will be calculated |
- Returns
- Spawn Coordinates for the object
The documentation for this class was generated from the following files: