MFMv2.0.10
Movable Feast Machine Simulator 2.0.10
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Static Public Attributes
MFM::Element_ForkBomb1< CC > Class Template Reference
Inheritance diagram for MFM::Element_ForkBomb1< CC >:
MFM::AbstractElement_ForkBomb< CC > MFM::Element< CC >

Public Member Functions

virtual u32 GetBombRange () const
 
virtual u32 LocalPhysicsColor (const T &atom, u32 selector) const
 
- Public Member Functions inherited from MFM::AbstractElement_ForkBomb< CC >
 AbstractElement_ForkBomb (const UUID &uuid)
 
virtual u32 PercentMovable (const T &you, const T &me, const SPoint &offset) const
 
virtual u32 DefaultPhysicsColor () const
 
virtual void Behavior (EventWindow< CC > &window) const
 
- Public Member Functions inherited from MFM::Element< CC >
 Element (const UUID &uuid)
 
void AllocateType ()
 
u32 GetType () const
 
const char * GetAtomicSymbol () const
 
const char * GetName () const
 
virtual void AppendDescription (const T *atom, OString64 &desc) const
 
bool IsType (u32 type) const
 
const UUIDGetUUID () const
 
virtual const T & GetDefaultAtom () const
 
virtual u32 PhysicsColor () const
 
virtual const char * GetDescription () const
 
virtual u32 DefaultLowlightColor () const
 
void ToggleLowlightPhysicsColor ()
 
virtual u32 Diffusability (EventWindow< CC > &ew, SPoint nowAt, SPoint maybeAt) const
 
u32 NoDiffusability (EventWindow< CC > &ew, SPoint nowAt, SPoint maybeAt) const
 
const ElementParameters< CC > & GetElementParameters () const
 
ElementParameters< CC > & GetElementParameters ()
 
const AtomicParameters< CC > & GetAtomicParameters () const
 
AtomicParameters< CC > & GetAtomicParameters ()
 

Static Public Attributes

static Element_ForkBomb1 THE_INSTANCE
 
- Static Public Attributes inherited from MFM::Element< CC >
static const u32 COMPLETE_DIFFUSABILITY = 1000
 

Additional Inherited Members

- Protected Member Functions inherited from MFM::Element< CC >
virtual T BuildDefaultAtom () const
 
const BitVector
< P::BITS_PER_ATOM > & 
GetBits (const T &atom) const
 
BitVector< P::BITS_PER_ATOM > & GetBits (T &atom) const
 
bool IsValidAtomicSymbol (const char *symbol)
 
void SetAtomicSymbol (const char *symbol)
 
void SetName (const char *name)
 
void Diffuse (EventWindow< CC > &window) const
 

Member Function Documentation

template<class CC >
virtual u32 MFM::Element_ForkBomb1< CC >::GetBombRange ( ) const
inlinevirtual

From 0 (no forking) up to EVENT_WINDOW_RADIUS (maximum speed forking)

Implements MFM::AbstractElement_ForkBomb< CC >.

template<class CC >
virtual u32 MFM::Element_ForkBomb1< CC >::LocalPhysicsColor ( const T &  atom,
u32  selector 
) const
inlinevirtual

Used during rendering, will select a color for any Atom of this Element to be rendered with. This should be overridden if wanting to use a gradient or some other variable color based on the body of the specified Atom .

Parameters
atomThe Atom of this element of which to find a color for.
selectorAn additional argument which may be used to determine the color of which to render atom
Returns
The 32-bit ARGB color of which to render atom with.

Implements MFM::AbstractElement_ForkBomb< CC >.


The documentation for this class was generated from the following file: