VR-Link API Documentation for DIS
Home
Namespaces
Classes
Files
Examples
Libraries
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
examples
addAttr
myFireInter.h
Go to the documentation of this file.
1
/*********************************************************************
2
** Copyright (c) 1992-2010 VT MAK
3
** All rights reserved.
4
*********************************************************************/
5
#pragma once
6
7
#if DtHLA
8
9
#include <stdio.h>
10
#include <
vl/fireInteractionHLA.h
>
11
16
class
MyFireInteraction :
public
DtFireInteraction
17
{
18
public
:
19
21
virtual
void
setTemperature(
float
temp);
23
virtual
float
temperature()
const
;
24
26
virtual
void
printData
()
const
;
27
28
public
:
29
31
static
DtInteraction
*
create
();
32
33
protected
:
34
35
float
myTemperature;
36
};
37
38
// Inline functions
39
40
inline
void
MyFireInteraction::setTemperature(
float
temp)
41
{
42
myTemperature = temp;
43
}
44
45
inline
float
MyFireInteraction::temperature()
const
46
{
47
return
myTemperature;
48
}
49
50
inline
void
MyFireInteraction::printData
()
const
51
{
52
DtFireInteraction::printData
();
53
printf(
"Temperature: %lf\n"
, temperature());
54
}
55
56
inline
DtInteraction
*
MyFireInteraction::create
()
57
{
58
return
new
MyFireInteraction();
59
}
60
61
#endif
Document ID: Generated on Mon Jun 22 21:18:40 EDT 2020 from SVN revision 213785
Copyright © 2005-2018 MAK Technologies. All Rights Reserved (
www.mak.com
)