Steeriously
0.1
Main Page
Namespaces
Classes
Files
File List
All
Classes
Namespaces
Functions
Variables
Typedefs
Enumerations
Pages
include
steeriously
SphereObstacle.hpp
1
#ifndef SPHEREOBSTACLE_HPP
2
#define SPHEREOBSTACLE_HPP
3
4
#include <steeriously/Vector2.hpp>
5
6
namespace
steer
7
{
8
14
class
SphereObstacle
15
{
16
public
:
17
24
SphereObstacle
(
steer::Vector2
position,
float
radius)
25
{
26
m_position
= position;
27
m_radius
= radius;
28
}
29
31
virtual
~SphereObstacle
(){};
32
37
bool
taggedInGroup
()
const
{
return
m_tag
; };
38
43
void
Tag
() {
m_tag
=
true
; };
44
49
void
unTag
() {
m_tag
=
false
; };
50
56
void
setPosition
(
steer::Vector2
position) {
m_position
= position; };
57
62
steer::Vector2
getPosition
()
const
{
return
m_position
; };
63
69
void
setRadius
(
float
radius) {
m_radius
= radius; };
70
75
float
getRadius
()
const
{
return
m_radius
; };
76
77
public
:
78
steer::Vector2
m_position
;
79
float
m_radius
;
80
bool
m_tag
;
81
};
82
83
}
84
85
#endif // SPHEREOBSTACLE_HPP
Generated on Sun Dec 10 2017 18:36:36 for Steeriously by
1.8.2