2013-11-28 08:33:29 +01:00
|
|
|
//////////////////////////////////////////////////
|
|
|
|
//Created by Erik and Linda of the GameLogic team
|
|
|
|
//////////////////////////////////////////////////
|
2013-11-19 11:07:14 +01:00
|
|
|
#ifndef LEVEL_H
|
|
|
|
#define LEVEL_H
|
2013-12-13 11:11:51 +01:00
|
|
|
#include <string>
|
2013-12-18 08:30:58 +01:00
|
|
|
#include "Player.h"
|
2013-11-19 11:07:14 +01:00
|
|
|
|
|
|
|
namespace GameLogic
|
|
|
|
{
|
|
|
|
|
|
|
|
class Level
|
|
|
|
{
|
|
|
|
|
|
|
|
public:
|
|
|
|
Level(void);
|
|
|
|
~Level(void);
|
|
|
|
|
2013-12-18 08:30:58 +01:00
|
|
|
/********************************************************
|
|
|
|
* Initiates a level for players to play on
|
|
|
|
* @param levelPath: Path to a file that contains all information on the level
|
|
|
|
********************************************************/
|
2013-12-13 11:06:03 +01:00
|
|
|
void InitiateLevel(std::string levelPath);
|
2014-01-16 11:40:29 +01:00
|
|
|
void Level::InitiateLevel(float radius);
|
2013-12-12 09:36:14 +01:00
|
|
|
|
2013-12-18 08:30:58 +01:00
|
|
|
/********************************************************
|
|
|
|
* Creates a team in the level
|
|
|
|
* @param teamSize: The size of the team you want to create
|
|
|
|
********************************************************/
|
|
|
|
void CreateTeam(int teamSize);
|
|
|
|
|
|
|
|
/********************************************************
|
|
|
|
* Adds a player to a team
|
|
|
|
* @param player: The player you want to add to the team
|
|
|
|
* @param teamID: ArrayPos of the team you want to add the player to
|
|
|
|
********************************************************/
|
|
|
|
void AddPlayerToTeam(Player *player, int teamID);
|
|
|
|
|
|
|
|
|
|
|
|
/********************************************************
|
|
|
|
* Respawns a player on a random teammate
|
|
|
|
* @param player: The player you want to respawn
|
|
|
|
********************************************************/
|
|
|
|
void RespawnPlayer(Player *player);
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
2013-11-19 11:07:14 +01:00
|
|
|
private:
|
2013-12-05 11:50:39 +01:00
|
|
|
struct PrivateData;
|
|
|
|
PrivateData *myData;
|
2013-11-19 11:07:14 +01:00
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
#endif
|