|
|
u32 | GetDataType () const |
| |
|
u32 | GetEmptyType () const |
| |
|
u32 | GetThreshold (const T &atom, u32 badType) const |
| |
|
bool | SetThreshold (T &atom, u32 value) const |
| |
| virtual const T & | GetDefaultAtom () const |
| |
| virtual u32 | PercentMovable (const T &you, const T &me, const SPoint &offset) const |
| |
| virtual u32 | DefaultPhysicsColor () const |
| |
| virtual u32 | DefaultLowlightColor () const |
| |
| virtual const char * | GetDescription () const |
| |
| virtual void | AppendDescription (const T *atom, OString64 &desc) const |
| |
| virtual u32 | LocalPhysicsColor (const T &atom, u32 selector) const |
| |
| virtual void | Behavior (EventWindow< CC > &window) const |
| |
| | Element (const UUID &uuid) |
| |
| void | AllocateType () |
| |
| u32 | GetType () const |
| |
| const char * | GetAtomicSymbol () const |
| |
| const char * | GetName () const |
| |
| bool | IsType (u32 type) const |
| |
| const UUID & | GetUUID () const |
| |
| virtual u32 | PhysicsColor () 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 Element_Sorter | THE_INSTANCE |
| |
|
static const u32 | STATE_THRESHOLD_IDX = 0 |
| |
|
static const u32 | STATE_THRESHOLD_LEN = 32 |
| |
|
static const u32 | STATE_BITS = STATE_THRESHOLD_LEN |
| |
| static const SPoint | m_southeastSubWindow [4] |
| |
| static const SPoint | m_northeastSubWindow [4] |
| |
| static const SPoint | m_southwestSubWindow [4] |
| |
| static const SPoint | m_northwestSubWindow [4] |
| |
| static const u32 | COMPLETE_DIFFUSABILITY = 1000 |
| |
Appends a short description of the data held by an Atom of this Element.
- Parameters
-
| atom | A pointer to an Atom (guaranteed to be an instance of this Element ) to append a description of. |
| desc | The OverflowabeleCharBufferByteSink to append the description to. |
Reimplemented from MFM::Element< CC >.
Describes the behavior of this Element. This is invoked when an Atom of this Element is chosen as the center of an EventWindow for an Event, which is given as a parameter.
- Parameters
-
| window | The EventWindow describing the Event which is currently being executed. |
Implements MFM::Element< CC >.
Gets the 32-bit ARGB formatted color that all Atoms of this Element will be drawn with when they have lowlight drawing enabled.
- Returns
- The lowlight color to draw all Atoms of this Element with.
Reimplemented from MFM::Element< CC >.
Gets the 32-bit ARGB formatted color that all Atoms of this Element will be drawn with.
- Returns
- The 32-bit ARGB formatted color that all Atoms of this Element will be drawn with.
Implements MFM::Element< CC >.
Gets a string of a short description of the behavior of this Element . This will be displayed in some way when a user needs help with this Element . This string must not include newlines; they will be added when they are needed.
- Returns
- A helpful description string breifely describing the behavior of this Element.
Reimplemented from MFM::Element< CC >.
template<class CC >
| virtual u32 MFM::Element_Sorter< 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
-
| atom | The Atom of this element of which to find a color for. |
| selector | An 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.
Reimplemented from MFM::Element< CC >.
Determines how likely an Atom of this type is to be swapped with during diffusal.
- Returns
- an integral percentage, from 0 to 100, describing the desire of an atom of this type to be moved; 0 being impossible to move and 100 being completely fine with moving.
Implements MFM::Element< CC >.
Initial value:=
{
SPoint(1,-1),SPoint(1,-2),SPoint(2,-1),SPoint(2,-2)
}
Initial value:=
{
SPoint(-1,-1),SPoint(-1,-2),SPoint(-2,-1),SPoint(-2,-2)
}
Initial value:=
{
SPoint(1,1),SPoint(1,2),SPoint(2,1),SPoint(2,2)
}
Initial value:=
{
SPoint(-1,1),SPoint(-1,2),SPoint(-2,1),SPoint(-2,2)
}
The documentation for this class was generated from the following file: