27 #ifndef ELEMENT_FORKBOMB3_H
28 #define ELEMENT_FORKBOMB3_H
39 #define FORKBOMB3_VERSION 1
45 typedef typename CC::ATOM_TYPE T;
46 typedef typename CC::PARAM_CONFIG P;
47 enum { R = P::EVENT_WINDOW_RADIUS };
59 return (u32) m_bombCount.GetValue();
64 m_bombCount(this,
"count",
"Bomb Count",
65 "Number of bombs randomly dropped each bomb event",
84 for (u32 i = 0; i < (u32) m_bombCount.GetValue(); ++i)
86 u32 idx = random.
Between(loIdx,hiIdx);
94 Element_ForkBomb3<CC> Element_ForkBomb3<CC>::THE_INSTANCE;
u32 GetFirstIndex(const u32 radius) const
Definition: MDist.h:112
Definition: AbstractElement_ForkBomb.h:41
u32 GetLastIndex(const u32 radius) const
Definition: MDist.h:129
virtual u32 GetBombRange() const
Definition: Element_ForkBomb3.h:57
void SetName(const char *name)
Definition: Element.h:209
void SetAtomicSymbol(const char *symbol)
Definition: Element.h:193
Random & GetRandom()
Definition: EventWindow.h:122
Definition: Parameter.h:593
const T & GetCenterAtom() const
Definition: EventWindow.h:209
virtual void Behavior(EventWindow< CC > &window) const
Definition: Element_ForkBomb3.h:78
static MDist< R > & get()
Definition: MDist.tcc:193
s32 Between(s32 min, s32 max)
Definition: Random.h:188
Definition: ElementTable.h:43
virtual u32 LocalPhysicsColor(const T &atom, u32 selector) const
Definition: Element_ForkBomb3.h:73
bool SetRelativeAtom(const SPoint &offset, const T &atom)
Definition: EventWindow.tcc:15
Definition: Element_ForkBomb3.h:42