VR-Link API Documentation for HLA 1.3
 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 
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 
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 Fri Dec 2 02:42:08 EST 2016 from SVN revision 171416
Copyright © 2005-2016 VT MÄK. All Rights Reserved (www.mak.com)