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 >.
On entry, the Atom at nowAt will be an instance of the type of this Element. How much does that atom like the idea that it should be moved to (or remain at; the two SPoints might be equal) location maybeAt? Return 0 to flat-out veto the idea, or from 0 up to COMPLETE_DIFFUSABILITY to request that fraction of diffusability. (Values larger than COMPLETE_DIFFUSABILITY are treated as equal to it.) Note that nowAt and maybeAt are both relative to the EventWindow ew, but neither is necessarily the center atom!
By default all atoms are considered diffusable, and they return COMPLETE_DIFFUSABILITY chances for every suggested move
Reimplemented from 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 >.
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 >.
The documentation for this class was generated from the following file: