Go to the source code of this file.
|
class | EvilNumber |
| this is a class that kinda mimics how python polymorph's numbers. More...
|
|
#define LOGIC_OPERATOR |
( |
|
a, |
|
|
|
b |
|
) |
| |
Value:bool operator a ( b val) \
return this->iVal a
static_cast<int64>(val); \
return this->fVal a static_cast<double>(val); \
} else { \
assert(false); \
return false; \
} \
}
if(sConfig.world.saveOnMove)
Code generation macro to create basic binary math operator overload using supplied operator and type being compared to EvilNumber.
- Parameters
-
- Returns
- operator overload function for operator 'a' to a value 'val' of type 'b' Code generation macro to create all basic binary math operator overload functions for a specified type
- Parameters
-
- Returns
- all basic binary math operator overload functions for the specified typeuse a code generating macro to generate basic binary math operator handlers Code generation macro to create comparison operator overload using supplied operator and type being compared to EvilNumber
- Parameters
-
- Returns
- operator overload function for operator 'a' comparing to a value 'val' of type 'b'
Definition at line 203 of file EvilNumber.h.
#define LOGIC_OPERATORS_FOR |
( |
|
type | ) |
|
Value:
#define LOGIC_OPERATOR(a, b)
Code generation macro to create basic binary math operator overload using supplied operator and type ...
Code generation macro to create all comparison operator overload functions for a specified type.
- Parameters
-
- Returns
- all comparison operator overload functions for the specified type
Definition at line 222 of file EvilNumber.h.
#define MAX_EVIL_INTEGER 0x7FFFFFFFFFFFFFFFLL |
Enumerator |
---|
evil_number_nan |
|
evil_number_int |
|
evil_number_float |
|
Definition at line 36 of file EvilNumber.h.
Definition at line 677 of file EvilNumber.cpp.
this is a class that kinda mimics how python polymorph's numbers.
Definition at line 663 of file EvilNumber.cpp.
this is a class that kinda mimics how python polymorph's numbers.
Definition at line 649 of file EvilNumber.cpp.
this is a class that kinda mimics how python polymorph's numbers.
Definition at line 656 of file EvilNumber.cpp.
this is a class that kinda mimics how python polymorph's numbers.
Definition at line 670 of file EvilNumber.cpp.
this is a class that kinda mimics how python polymorph's numbers.
Definition at line 34 of file EvilNumber.cpp.
Referenced by FxProc::ApplyEffects(), Concord::Concord(), DroneSE::DroneSE(), IHubSE::Init(), SBUSE::Init(), TCUSE::Init(), CustomsSE::Init(), ShipItem::InitAttribs(), ShipItem::InitPod(), NPC::NPC(), GenericModule::Online(), Sentry::Sentry(), Sentry::SetResists(), NPC::SetResists(), Concord::SetResists(), DroneSE::SetResists(), StructureItem::Spawn(), CelestialObject::Spawn(), Client::SpawnNewRookieShip(), and StationSE::StationSE().
Definition at line 32 of file EvilNumber.cpp.
Referenced by SystemEntity::ApplyDamage(), FxProc::ApplyEffects(), FxProc::CalculateAttributeValue(), Command_cargo(), Concord::Concord(), DroneSE::DroneSE(), AttributeMap::GetAttribute(), AttributeMap::HasAttribute(), ShipItem::InitAttribs(), ShipItem::InitPod(), Character::InjectSkillIntoBrain(), GenericModule::IsDamaged(), AttributeMap::Load(), ModuleManager::LoadCharge(), ShipItem::LogOut(), AttributeMap::MultiplyAttribute(), NPC::NPC(), GenericModule::Offline(), GenericModule::Repair(), ShipItem::RepairModules(), ShipItem::RepairShip(), AttributeMap::Save(), Sentry::Sentry(), ShipItem::SetPlayer(), ShipItem::SetShipArmor(), ShipItem::SetShipCapacitorLevel(), ShipItem::SetShipHull(), ShipItem::SetShipShield(), StructureItem::Spawn(), CargoContainer::Spawn(), WreckContainer::Spawn(), InventoryItem::Spawn(), StationSE::StationSE(), ModuleManager::UnloadCharge(), ActiveModule::UpdateDamage(), ModuleManager::UpdateModules(), ShipItem::ValidateBoardShip(), and Skill::VerifySP().