Go to the documentation of this file.
40 if (
p->GetSeqCount() > 1)
53 pActions->Initialise(pAct, engine);
69 fprintf(fd,
":ActionSlots (\n");
74 fprintf(fd,
"( // slot %d\n", i);
77 if (pActions->
Size() == 0)
80 fprintf(fd,
"NULL\n");
84 pActions->
PrintMe(fd, nTabs + 2);
101 for (
int i = 0; i <
p->GetSeqCount(); i++)
127 for (
int i = 0; i < pMovements->
GetArgCount(); i++)
131 pMove->Initialise(pMovements->
GetArgN(i), engine);
143 pToken->Initialise(pTokenGrp->
GetArgN(i), engine);
160 pActions->Initialise(pAct, engine);
174 fprintf(fd,
":MovementTable (\n");
188 fprintf(fd,
":TokenGroupItems (\n");
202 fprintf(fd,
":NoTokenActionSlots (\n");
208 if (pActions->
Size() == 0)
211 fprintf(fd,
"NULL ");
215 pActions->
PrintMe(fd, nTabs + 2);
228 fprintf(fd,
"{:TokenGroup ");
252 if (pObject->
IsSet())
307 if (n > 0 && n <= pGroup->m_ActionSlots.Size())
345 for (
int i = 0; i < pPositions->
GetArgCount(); i++)
371 fprintf(fd,
"{:ListGroup ");
374 fprintf(fd,
":Positions (");
386 fprintf(fd,
":WrapAround true\n");
392 fprintf(fd,
":MultipleSelection true\n");
415 if (
p->m_pVisible == pItem)
436 item->m_pVisible->ResetPosition();
453 item->m_pVisible->Deactivation(engine);
541 #
if QT_VERSION < QT_VERSION_CHECK(6,0,0)
558 if (item->m_pVisible == pItem)
565 if (nIndex < 1 || nIndex >
m_itemList.size() + 1)
607 if (pListItem ==
nullptr || pListItem->
m_fSelected)
633 if (pListItem ==
nullptr || ! pListItem->
m_fSelected)
649 if (nVisIndex >= 0 && nVisIndex <
m_itemList.size())
671 return ((nIndex - 1) % nItems) + 1;
675 return nItems - ((-nIndex) % nItems);
virtual void Activation(MHEngine *engine)
enum NodeType m_nNodeType
MHSequence< QPoint > m_positions
void Select(int nIndex, MHEngine *engine)
void Deactivation(MHEngine *engine) override
void Initialise(MHParseNode *p, MHEngine *engine)
void PrintMe(FILE *fd, int nTabs) const override
virtual bool GetRunningStatus()
void Initialise(MHParseNode *p, MHEngine *engine)
virtual void ResetPosition()
virtual void Deactivation(MHEngine *engine)
void Preparation(MHEngine *engine) override
MHOwnPtrSequence< MHActionSequence > m_noTokenActionSlots
bool m_fFirstItemDisplayed
void Activation(MHEngine *engine) override
MHParseNode * GetSeqN(int n)
bool m_fMultipleSelection
void Initialise(MHParseNode *p, MHEngine *engine) override
virtual void SetPosition(int, int, MHEngine *)
void TransferToken(int newPos, MHEngine *engine)
void PrintArgs(FILE *fd, int) const override
void Move(int n, MHEngine *engine) override
void Initialise(MHParseNode *p, MHEngine *engine)
void Activation(MHEngine *engine) override
void ScrollItems(int nCell, MHEngine *engine) override
void CallActionSlot(int n, MHEngine *engine) override
virtual void SetVariableValue(const MHUnion &)
void Initialise(MHParseNode *p, MHEngine *engine) override
MHOwnPtrSequence< MHMovement > m_movementTable
virtual void Initialise(MHParseNode *p, MHEngine *engine)
void DeselectItem(int nCell, MHEngine *engine) override
void Destruction(MHEngine *engine) override
void SelectItem(int nCell, MHEngine *engine) override
void Deselect(int nIndex, MHEngine *engine)
void GetCellItem(int nCell, const MHObjectRef &itemDest, MHEngine *engine) override
MHObjectRef m_ObjectReference
void Initialise(MHParseNode *p, MHEngine *engine)
void Initialise(MHParseNode *p, MHEngine *engine)
void Initialise(MHParseNode *p, MHEngine *engine) override
void EventTriggered(MHRoot *pSource, enum EventType ev)
MHOwnPtrSequence< MHActionSequence > m_ActionSlots
void ToggleItem(int nCell, MHEngine *engine) override
void Initialise(MHParseNode *p, MHEngine *engine) override
void Perform(MHEngine *engine) override
void PrintTabs(FILE *fd, int n)
MHSequence< int > m_movement
MHParseNode * GetArgN(int n)
void PrintMe(FILE *fd, int nTabs) const override
MHRoot * FindObject(const MHObjectRef &oRef, bool failOnNotFound=true)
void GetListItem(int nCell, const MHObjectRef &itemDest, MHEngine *engine) override
bool m_fLastItemDisplayed
int AdjustIndex(int nIndex)
void Initialise(MHParseNode *p, MHEngine *engine) override
QList< MHListItem * > m_itemList
void Update(MHEngine *engine)
static eu8 clamp(eu8 value, eu8 low, eu8 high)
@ C_NO_TOKEN_ACTION_SLOTS
void SetFirstItem(int nCell, MHEngine *engine) override
MHRoot * Target(MHEngine *engine)
MHOwnPtrSequence< MHTokenGroupItem > m_tokenGrpItems
void AddActions(const MHActionSequence &actions)
void Preparation(MHEngine *engine) override
void PrintContents(FILE *fd, int nTabs) const
void PrintMe(FILE *fd, int nTabs) const
void PrintArgs(FILE *fd, int) const override
MHGenericObjectRef m_item
void PrintMe(FILE *fd, int nTabs) const override
virtual void PrintMe(FILE *fd, int nTabs) const
void Destruction(MHEngine *engine) override
int GetValue(MHEngine *engine) const
void Deactivation(MHEngine *engine) override
virtual void AddItem(int, MHRoot *, MHEngine *)
void PrintMe(FILE *fd, int nTabs) const
void GetValue(MHObjectRef &ref, MHEngine *engine) const
void PrintMe(FILE *fd, int nTabs) const
void AddItem(int nIndex, MHRoot *pItem, MHEngine *engine) override
void DelItem(MHRoot *pItem, MHEngine *engine) override
void PrintMe(FILE *fd, int nTabs) const
@ EventFirstItemPresented
void PrintMe(FILE *fd, int nTabs) const
void GetItemStatus(int nCell, const MHObjectRef &itemDest, MHEngine *engine) override