Bowls
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Macros Pages
Box.h
Go to the documentation of this file.
1 #pragma once
2 #ifndef BOX_H
3 #define BOX_H
4 
5 #include <cgg/cgg.h>
6 #include "CollisionEntity.h"
7 
13 class Box : public CollisionEntity
14 {
15 public:
16 
26  Box(cgg::Mat43, bool);
27 
38  Box(cgg::Mat43, cgg::Vec3, cgg::Vec3, bool);
39 
52  Box(cgg::Mat43, cgg::Vec3, float, float, float, bool);
53 
63  Box(cgg::Vec3, bool);
64 
75  Box(cgg::Vec3, cgg::Vec3, cgg::Vec3, bool);
76 
89  Box(cgg::Vec3, cgg::Vec3, float, float, float, bool);
90 
98  void render(gl::Primitives*);
99 
105  float getWidth();
106 
112  float getDepth();
113 
119  float getHeight();
120 
126  bool xAxisCheck();
127 
128 protected:
129 
131  cgg::Vec3 dimensions;
133  bool xAxis;
134 };
135 
136 #endif
float getWidth()
Class that represents an Entity with Collision.
void render(gl::Primitives *)
float getDepth()
Box(cgg::Mat43, bool)
cgg::Vec3 dimensions
Contains the Width, Height and Depth of the Box.
Definition: Box.h:131
float getHeight()
Class that represents a Box.
Definition: Box.h:13
bool xAxis
if it is a box on the x axis (for a wall) - TEMP for easy wall collision physics
Definition: Box.h:133
bool xAxisCheck()