VR-Forces 5.0.2 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
appearanceSimObjectFacade.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2020 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
6 #pragma once
7 
10 #include <vlpi/appearance.h>
11 #include <tbb/spin_rw_mutex.h>
12 
13 namespace makVrf
14 {
15  class DtSimulatedObjectStateComponent;
16 }
17 
21 {
22 public:
25 
28 
30  bool isUsable() const;
31 
33  int damageState() const;
34  bool isDestroyed() const;
35  bool firePowerKilled() const;
36  bool mobilityKilled() const;
37  bool isConcealed() const;
38 
39  DtReal healthPct() const;
40  const DtAppearance& appearance() const;
41  int capabilities() const;
42 
43 protected:
44  const makVrf::DtSimulatedObjectStateComponent* simObjectStateComponent() const;
45 
46 protected:
48  virtual DtSimObjectReference simObject() const = 0;
49  virtual void setupDecorator();
50 
51 protected:
52  mutable DtAppearance myAppearance;
54  mutable tbb::spin_rw_mutex mySimObjectStateComponentMutex;
55 };
56 
DtAppearance myAppearance
Definition: appearanceSimObjectFacade.h:52
The DtSimulatedObjectStateComponent is an interface that all main components (those that are consider...
Definition: simulatedObjectStateComponent.h:21
The DtSimObjectReference is a shared pointer that can be used amongst many object for access to the u...
Definition: simObjectReference.h:26
tbb::spin_rw_mutex mySimObjectStateComponentMutex
Definition: appearanceSimObjectFacade.h:54
DtSimObjectFacade< DtAppearanceSimObjectFacadeInterface > DtAppearanceSimObjectFacade
Definition: appearanceSimObjectFacade.h:57
const makVrf::DtSimulatedObjectStateComponent * mySimulatedObjectStateComponent
Definition: appearanceSimObjectFacade.h:53
#define DT_DLL_vrfobjcore
This file is used to determine how to build.
Definition: vrfobjcoreDefines.h:24
This DtAppearanceSimObjectFacadeInterface class will provide common routines for appearances that app...
Definition: appearanceSimObjectFacade.h:20

Document ID: Generated on Sun Dec 4 20:22:03 EST 2022 from SVN revision 249613
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)