Changeset View
Changeset View
Standalone View
Standalone View
ps/trunk/source/simulation2/components/CCmpUnitMotion.cpp
Show First 20 Lines • Show All 122 Lines • ▼ Show 20 Lines | public: | ||||
// that the move will likely fail. | // that the move will likely fail. | ||||
u8 m_FailedPathComputations = 0; | u8 m_FailedPathComputations = 0; | ||||
struct Ticket { | struct Ticket { | ||||
u32 m_Ticket = 0; // asynchronous request ID we're waiting for, or 0 if none | u32 m_Ticket = 0; // asynchronous request ID we're waiting for, or 0 if none | ||||
enum Type { | enum Type { | ||||
SHORT_PATH, | SHORT_PATH, | ||||
LONG_PATH | LONG_PATH | ||||
} m_Type; | } m_Type = SHORT_PATH; // Pick some default value to avoid UB. | ||||
void clear() { m_Ticket = 0; } | void clear() { m_Ticket = 0; } | ||||
} m_ExpectedPathTicket; | } m_ExpectedPathTicket; | ||||
struct MoveRequest { | struct MoveRequest { | ||||
enum Type { | enum Type { | ||||
NONE, | NONE, | ||||
POINT, | POINT, | ||||
▲ Show 20 Lines • Show All 1,252 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator