PhysicsSphere.hpp
Go to the documentation of this file.
1 
6 #pragma once
7 
8 
9 #include <etk/types.hpp>
11 
12 
13 namespace ege {
15  public:
16  PhysicsSphere() {};
17  virtual ~PhysicsSphere() {};
18  public:
19  virtual bool parse(const char* _line);
20  virtual void display() {};
21  public:
22  virtual enum ege::PhysicsShape::type getType() const {
23  return ege::PhysicsShape::sphere;
24  };
25  private:
26  float m_radius; // props["radius"] = obj.scale.x
27  public:
28  float getRadius() const {
29  return m_radius;
30  };
31  void setRadius(float _radius) {
32  m_radius = _radius;
33  };
34  private:
35  virtual const ege::PhysicsSphere* toSphere() const {
36  return this;
37  };
38  virtual ege::PhysicsSphere* toSphere() {
39  return this;
40  };
41  };
42 }
43 
Definition: AudioElement.hpp:8
Definition: PhysicsSphere.hpp:14
Definition: PhysicsShape.hpp:22