2023-02-14 02:55:44 +00:00
|
|
|
#ifndef __SPLITSTRIPMESSAGE__H__
|
|
|
|
#define __SPLITSTRIPMESSAGE__H__
|
|
|
|
|
2024-01-03 13:34:38 +00:00
|
|
|
#include "Action.h"
|
2023-02-16 17:30:33 +00:00
|
|
|
#include "ActionContext.h"
|
2023-02-14 02:55:44 +00:00
|
|
|
#include "BehaviorMessageBase.h"
|
2023-02-16 17:30:33 +00:00
|
|
|
#include "StripUiPosition.h"
|
2023-02-14 02:55:44 +00:00
|
|
|
|
|
|
|
class AMFArrayValue;
|
|
|
|
|
2023-02-16 17:30:33 +00:00
|
|
|
/**
|
|
|
|
* @brief Sent when a player takes an Action from Strip A and does not add it to an existing strip
|
|
|
|
*
|
|
|
|
*/
|
2023-02-14 02:55:44 +00:00
|
|
|
class SplitStripMessage : public BehaviorMessageBase {
|
|
|
|
public:
|
2024-02-27 07:29:51 +00:00
|
|
|
SplitStripMessage(const AMFArrayValue& arguments);
|
2024-02-18 06:38:26 +00:00
|
|
|
|
|
|
|
[[nodiscard]] int32_t GetSrcActionIndex() const noexcept { return m_SrcActionIndex; }
|
|
|
|
|
|
|
|
[[nodiscard]] const ActionContext& GetSourceActionContext() const noexcept { return m_SourceActionContext; }
|
|
|
|
|
|
|
|
[[nodiscard]] const ActionContext& GetDestinationActionContext() const noexcept { return m_DestinationActionContext; }
|
|
|
|
|
|
|
|
[[nodiscard]] const StripUiPosition& GetPosition() const noexcept { return m_DestinationPosition; }
|
|
|
|
|
|
|
|
[[nodiscard]] const std::vector<Action>& GetTransferredActions() const noexcept { return m_TransferredActions; }
|
|
|
|
|
|
|
|
void SetTransferredActions(std::vector<Action>::const_iterator begin, std::vector<Action>::const_iterator end) { m_TransferredActions.assign(begin, end); };
|
|
|
|
|
2023-02-14 02:55:44 +00:00
|
|
|
private:
|
2024-02-18 06:38:26 +00:00
|
|
|
int32_t m_SrcActionIndex;
|
|
|
|
ActionContext m_SourceActionContext;
|
|
|
|
ActionContext m_DestinationActionContext;
|
|
|
|
StripUiPosition m_DestinationPosition;
|
2024-01-03 13:34:38 +00:00
|
|
|
|
2024-02-18 06:38:26 +00:00
|
|
|
std::vector<Action> m_TransferredActions;
|
2023-02-14 02:55:44 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif //!__SPLITSTRIPMESSAGE__H__
|