VR-Forces 4.6 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
examples
exampleProjectile
DtObserverShooter.h
Go to the documentation of this file.
1
/*****************************************************************************
2
* Copyright (c) 2016 MAK Technologies, Inc.
3
* All rights reserved.
4
*****************************************************************************/
5
9
10
#include "
DtProjectile.h
"
11
12
#include <
vrvCore/DtUniqueID.h
>
13
14
#include <matrix/vlVector.h>
15
#include <matrix/vlTaitBryan.h>
16
17
#include <boost/unordered_map.hpp>
18
#include <boost/function.hpp>
19
20
#include <list>
21
#include <string>
22
23
// Use the VR-Vantage namespace.
24
// All classes in VR-Vantage are in this namespace.
25
namespace
makVrv
26
{
27
class
DtDe;
28
29
class
DtObserverShooter
30
{
31
public
:
32
DtObserverShooter
(
DtDe
& de );
33
34
virtual
~DtObserverShooter
();
35
36
void
fireProjectile
();
37
38
void
setModelDefinitionName
(
const
std::string& modelDefinitionName );
39
40
void
setProjectileSpeed
(
double
speed );
41
42
void
tick
(
double
simTime );
43
44
void
removeExpiredProjectiles
();
45
46
void
setIntersectionCallback
(
DtProjectile::IntersectionCallback
callback );
47
48
protected
:
49
typedef
boost::unordered_map<DtUniqueID, DtProjectile*>
ProjectileMap
;
50
typedef
std::list<DtUniqueID>
ProjectileIDList
;
51
52
protected
:
53
DtDe
&
myDe
;
54
ProjectileMap
myProjectiles
;
55
ProjectileIDList
myExpiredProjectiles
;
56
std::string
myModelDefinitionName
;
57
double
myProjectileSpeed
;
58
DtProjectile::IntersectionCallback
myIntersectionCallback
;
59
};
60
}
Document ID: Generated on Thu Apr 12 03:15:37 EDT 2018 from SVN revision 187986
Copyright © 2005-2018 VT MÄK. All Rights Reserved (
www.mak.com
)