Example code:
#ifndef SPELL_ENUMS_H
#define SPELL_ENUMS_H
namespace spellEnums {
// Cantrips
enum LEVEL_ZERO
{
enum EVOCATION
{
_DANCING_LIGHTS
};
enum CONJURATION
{
_ACID_SPLASH
};
};
};
So I can do stuff like LEVEL_ZERO::EVOCATION::_DANCING_LIGHTS ?
Although an alternative suggestion to have all 300+ 3.5e Dungeons and Dragon's type defined in a tight tidy easily readable and conveniently accessible would be greatly appreciated. :D
Or do I have to do lame namespacing like:
namespace LEVEL_ZERO {
// Cantrips
enum EVOCATION
{
_DANCING_LIGHTS
};
enum CONJURATION
{
_ACID_SPLASH
};
};
namespace LEVEL_ONE {
// Level one spells
enum EVOCATION
{
_FLAMING_HANDS
};
enum CONJURATION
{
_MAGE_ARMOUR //BECAUSE JE SUIS CANADIEN le poutine eh?!
};
};
Or will this cause weird problems?