VR-Exchange 2.4 API Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
pBoomInter.h
Go to the documentation of this file.
1 /****************************************************************************
2  * Copyright (c) 2014 VT MAK
3  * All rights reserved.
4  ****************************************************************************/
5 
9 
10 #pragma once
11 
12 #include <portal/pInteraction.h>
13 #include <vlutil/vlNetTypes.h>
14 #include <vlutil/vlString.h>
15 #include <matrix/vlVector.h>
16 
17 namespace MAKVrExchange
18 {
19  class DtPortalConnection;
20 }
21 
28 {
29 public:
30 
31  typedef void (*DtPortalBoomInteractionCb) (
32  const DtPortalBoomInteraction& inter, void* usr );
33 
34 public:
35 
38 
40  virtual ~DtPortalBoomInteraction();
41 
44  DtPortalBoomInteractionCb cb, void* usr );
45 
48  DtPortalBoomInteractionCb cb, void* usr );
49 
52 
53  // The Volume of the Boom. Valid range is 0->10 with 10 being very loud.
54  DtDEC_ATTRIBUTE(DtU32, Volume, volume);
55 
56  // Answers the question, did the ground move?
57  DtDEC_ATTRIBUTE(bool, GroundMovement, groundMovement);
58 
60 
62 public:
63 
65 
66  static DtPortalMessage* create();
67 
68  virtual unsigned int netSize() const;
69  virtual void writeSelfToBuffer( void* buffer ) const ;
70  virtual void readSelfFromBuffer( const void* buffer );
71 
72  virtual std::ostream& printDataToStream( std::ostream& str ) const;
73 
74 };
75 
76 
78 {
79  return new DtPortalBoomInteraction();
80 }

Document ID: Generated on Thu Jul 23 10:25:22 EDT 2015 from SVN revision 155065
Copyright © 2005-2014 VT MÄK. All Rights Reserved (www.mak.com)