QcQuickMove Namespace
Where a shift-clicked stack goes, by its slot (numbers as in QcMsg::MoveInventoryItem). More...
| Header: | #include <common/gameplay/QcQuickMove.h> |
Classes
| struct | Situation |
Functions
| QList<int> | targets(int from, QcQuickMove::Situation situation) |
Detailed Description
Pure, so the server's rule is testable on its own.
Function Documentation
QList<int> QcQuickMove::targets(int from, QcQuickMove::Situation situation)
Returns the target slots for the stack in slot from in situation, in the order they are filled; empty when the stack cannot go anywhere.