wavelength 1.0.0
Loading...
Searching...
No Matches
pitchgem.h
Go to the documentation of this file.
1#pragma once
2
8class PitchGem {
9public:
10 PitchGem() = default;
11
19 PitchGem(signed char nSlot, int nTick, signed char nOwner)
20 : mSlot(nSlot), mTick(nTick), mOwner(nOwner) {
21 }
22
31 bool operator<(const PitchGem &other) const {
32 return mTick < other.mTick;
33 }
34
36 int GetTick() const {
37 return mTick;
38 }
39
41 void SetTick(int nTick) {
42 mTick = nTick;
43 }
44
46 signed char GetSlot() const {
47 return mSlot;
48 }
49
51 signed char GetOwner() const {
52 return mOwner;
53 }
54
56 void SetOwner(signed char nOwner) {
57 mOwner = nOwner;
58 }
59
60private:
61 signed char mSlot;
62 int mTick;
63 signed char mOwner;
64};
signed char GetSlot() const
Definition pitchgem.h:46
signed char GetOwner() const
Definition pitchgem.h:51
void SetOwner(signed char nOwner)
Definition pitchgem.h:56
bool operator<(const PitchGem &other) const
Order gems by tick.
Definition pitchgem.h:31
void SetTick(int nTick)
Definition pitchgem.h:41
PitchGem()=default
int GetTick() const
Definition pitchgem.h:36
PitchGem(signed char nSlot, int nTick, signed char nOwner)
Construct a gem.
Definition pitchgem.h:19