PhysicsBox.hpp
Go to the documentation of this file.
1 
6 #pragma once
7 
8 
9 #include <etk/types.hpp>
11 
12 namespace ege {
13  class PhysicsBox : public ege::PhysicsShape {
14  public:
15  PhysicsBox() {};
16  virtual ~PhysicsBox() {};
17  public:
18  virtual bool parse(const char* _line);
19  virtual void display() {};
20  public:
21  virtual enum ege::PhysicsShape::type getType() const {
22  return ege::PhysicsShape::box;
23  };
24  private:
25  vec3 m_size; // Box size property in X, Y and Z
26  public:
27  const vec3& getSize() const {
28  return m_size;
29  };
30  void setSize(const vec3& _size) {
31  m_size = _size;
32  }
33  public:
34  virtual const ege::PhysicsBox* toBox() const {
35  return this;
36  };
37  virtual ege::PhysicsBox* toBox() {
38  return this;
39  };
40  };
41 }
42 
Definition: AudioElement.hpp:8
Definition: PhysicsBox.hpp:13
Definition: PhysicsShape.hpp:22