public CPlanet(CStar parent, string name, E_PLANET_TYPE type, float size, Vector3 position) { m_parentStar = parent; m_planetName = name; m_planetType = type; m_planetSize = size; m_planetPosition = position; m_colony = null; m_planetResources = new CResources(); switch (m_planetType) { case E_PLANET_TYPE.E_BARREN: m_planetResources.BarrenInit(); break; case E_PLANET_TYPE.E_LUSH: m_planetResources.LushInit(); break; case E_PLANET_TYPE.E_GAS_GIANT: m_planetResources.GasGiantInit(); break; } }