MFMv2.0.10
Movable Feast Machine Simulator 2.0.10
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Element_Boids1.h
1 #ifndef ELEMENT_BOIDS1_H /* -*- C++ -*- */
2 #define ELEMENT_BOIDS1_H
3 
4 #include "Element_Boids.h"
5 
6 namespace MFM
7 {
8 
9  template <class CC>
10  class Element_Boids1 : public Element_Boids<CC>
11  {
12  // Extract short names for parameter types
13  typedef typename CC::ATOM_TYPE T;
14  typedef typename CC::PARAM_CONFIG P;
15 
16  public:
17 
18  const char* GetName() const { return "B1"; }
19 
20  static Element_Boids1 THE_INSTANCE;
21  static const u32 SUB_TYPE = 1;
22  static const u32 TYPE = Element_Boids<CC>::TYPE|(SUB_TYPE<<Element_Boids<CC>::TYPE_BITS);
23 
24  Element_Boids1() { }
25 
26  virtual const T & GetDefaultAtom() const
27  {
28  static T defaultAtom(TYPE,0,0,Element_Boids<CC>::STATE_BITS);
29  return defaultAtom;
30  }
31 
32  virtual u32 DefaultPhysicsColor() const
33  {
34  return 0xff00f0f0;
35  }
36  };
37 
38  template <class CC>
39  Element_Boids1<CC> Element_Boids1<CC>::THE_INSTANCE;
40 
41 }
42 
43 #endif /* ELEMENT_BOIDS1_H */
Definition: Element_Boids.h:111
virtual u32 DefaultPhysicsColor() const
Definition: Element_Boids1.h:32
virtual const T & GetDefaultAtom() const
Definition: Element_Boids1.h:26
Definition: Element_Boids1.h:10