Changeset View
Changeset View
Standalone View
Standalone View
ps/trunk/source/ps/World.cpp
/* Copyright (C) 2013 Wildfire Games. | /* Copyright (C) 2017 Wildfire Games. | ||||
* This file is part of 0 A.D. | * This file is part of 0 A.D. | ||||
* | * | ||||
* 0 A.D. is free software: you can redistribute it and/or modify | * 0 A.D. is free software: you can redistribute it and/or modify | ||||
* it under the terms of the GNU General Public License as published by | * it under the terms of the GNU General Public License as published by | ||||
* the Free Software Foundation, either version 2 of the License, or | * the Free Software Foundation, either version 2 of the License, or | ||||
* (at your option) any later version. | * (at your option) any later version. | ||||
* | * | ||||
* 0 A.D. is distributed in the hope that it will be useful, | * 0 A.D. is distributed in the hope that it will be useful, | ||||
▲ Show 20 Lines • Show All 42 Lines • ▼ Show 20 Lines | |||||
/** | /** | ||||
* Constructor. | * Constructor. | ||||
* | * | ||||
* @param pGame CGame * pGame pointer to the container game object. | * @param pGame CGame * pGame pointer to the container game object. | ||||
**/ | **/ | ||||
CWorld::CWorld(CGame *pGame): | CWorld::CWorld(CGame *pGame): | ||||
m_pGame(pGame), | m_pGame(pGame), | ||||
m_Terrain(new CTerrain()), | m_Terrain(new CTerrain()), | ||||
m_UnitManager(new CUnitManager()), | m_UnitManager(new CUnitManager()) | ||||
m_TerritoryManager(NULL) | |||||
{ | { | ||||
} | } | ||||
/** | /** | ||||
* Initializes the game world with the attributes provided. | * Initializes the game world with the attributes provided. | ||||
**/ | **/ | ||||
void CWorld::RegisterInit(const CStrW& mapFile, JSRuntime* rt, JS::HandleValue settings, int playerID) | void CWorld::RegisterInit(const CStrW& mapFile, JSRuntime* rt, JS::HandleValue settings, int playerID) | ||||
{ | { | ||||
▲ Show 20 Lines • Show All 55 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator