28 #ifndef ELEMENT_TEMPLATE_H
29 #define ELEMENT_TEMPLATE_H
39 #define TEMPLATE_VERSION 1
45 typedef typename CC::ATOM_TYPE T;
46 typedef typename CC::PARAM_CONFIG P;
47 enum { R = P::EVENT_WINDOW_RADIUS };
61 :
Element<CC>(MFM_UUID_FOR(
"Template", TEMPLATE_VERSION)),
63 m_sampleParameter(
this,
"sample",
"Sample Parameter",
64 "This is the description for a sample parameter.", 1, 200, 1000, 10)
76 const T& me,
const SPoint& offset)
const
101 return "Short for \"Dynamic Regulator\", This Atom controls the density of "
102 "nearby Atoms by creating RES atoms and deleting nearby atoms.";
119 Element_Template<CC> Element_Template<CC>::THE_INSTANCE;
virtual u32 PercentMovable(const T &you, const T &me, const SPoint &offset) const
Definition: Element_Template.h:75
virtual u32 DefaultLowlightColor() const
Definition: Element_Template.h:91
void SetName(const char *name)
Definition: Element.h:209
void SetAtomicSymbol(const char *symbol)
Definition: Element.h:193
Definition: Parameter.h:593
Definition: Element_Template.h:42
virtual void Behavior(EventWindow< CC > &window) const
Definition: Element_Template.h:110
virtual u32 DefaultPhysicsColor() const
Definition: Element_Template.h:82
virtual const char * GetDescription() const
Definition: Element_Template.h:99
Definition: ElementTable.h:43