VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
playSoundPSR.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2026 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
9 #pragma once
10 
12 #include <vlutil/vlUtil.h>
13 #include <readerWriter/rwReal.h>
14 #include <readerWriter/rwInt.h>
15 #include <vrfutil/rwEntityType.h>
16 
21 
23 {
26 };
27 
30 {
31 public:
32 
34  DtPlaySoundPSR(DtLocalObject* vrfObject,
35  const DtString& rwName = DtString::nullString(),
36  DtReaderWriterRegistry* parentRegistry = 0);
37 
39  DtPlaySoundPSR(const DtPlaySoundPSR& orig,
40  const DtString& rwName = DtString::nullString(),
41  DtReaderWriterRegistry* parentRegistry = 0);
42 
44  virtual ~DtPlaySoundPSR() override;
45 
48 
51  const DtString& rwName = DtString::nullString(),
52  DtReaderWriterRegistry* parentRegistry = 0) const override;
53 
56  virtual DtString type() const override;
57 
59  virtual void setPlayState(enum PlaySoundState playState);
60  virtual enum PlaySoundState playState() const;
61 
63  virtual void setSoundType(const DtEntityType& soundType);
64  virtual DtEntityType soundType() const;
65 
67  virtual void setWaitTime(DtTime time);
68  virtual DtTime waitTime() const;
69 
70 public:
71 
73  static DtVrfProcessStateRepository* creator(const DtString& rwName,
74  DtLocalObject* vrfObject, DtReaderWriterRegistry* parentRegistry);
75 
76 protected:
77 
81 
84 
87 };
DtRwReal myWaitTime
Time to wait (in seconds).
Definition: playSoundPSR.h:86
Definition: playSoundPSR.h:29
Definition: readerWriterRegistry.h:39
Definition: playSoundPSR.h:24
#define DT_DLL_vrfobjcore
This file is used to determine how to build.
Definition: vrfobjcoreDefines.h:24
Description: Readable, Writable int.
Definition: rwInt.h:25
virtual DtVrfProcessStateRepository * clone(const DtString &rwName=DtString::nullString(), DtReaderWriterRegistry *parentRegistry=0) const =0
PlaySoundState
class DtPlaySoundPSR:
Definition: playSoundPSR.h:22
DtRwInt myPlayState
Kind of playing we&#39;re doing (not playing, playing). Stored as DtRwInt, but represents a PlaySoundStat...
Definition: playSoundPSR.h:80
Description: Readable, Writable DtReal (double)
Definition: rwReal.h:27
File: rwEntType.h.
Definition: rwEntityType.h:26
DtRwEntityType mySoundType
The entity type identifying the sound currently being played.
Definition: playSoundPSR.h:83
Class DtVrfProcessStateRepository: Abstract base class for all process state repositories. Process state repositories represent (potentially) shared, savable information for one or more components functioning together to achieve some process or set of processes; such as aiming and firing a weapon; moving an object; or just waiting a specified amount of time.
Definition: vrfProcessStateRepository.h:45
virtual DtString type() const =0
Returns the string type of the repository, as defined in psrTypes.h.
const DtVrfProcessStateRepository & operator=(const DtVrfProcessStateRepository &orig)
Definition: playSoundPSR.h:25
A locally simulated VRF object.
Definition: localObject.h:98

Document ID: Generated on Thu Oct 15 21:27:02 EDT 2026 from SVN revision 296421
Copyright © 2005-2026 MAK Technologies. All Rights Reserved (www.mak.com)