VR-Link API Documentation for DIS
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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 {
53  printf("Temperature: %lf\n", temperature());
54 }
55 
57 {
58  return new MyFireInteraction();
59 }
60 
61 #endif

Document ID: Generated on Wed Jan 7 13:31:29 EST 2015 from SVN revision 149162
Copyright © 2005-2014 VT MÄK. All Rights Reserved (www.mak.com)