QcMapPending Class
What one player has not received of one map yet (decision E-802): per row the span of pixels changed since, and the row to go on from. More...
| Header: | #include <server/maps/QcMapPending.h> |
Public Functions
Static Public Members
| QcMapPending | whole() |
Detailed Description
Sending takes the next changed rows after that row (wrapping at the bottom), so rows changing all the time near the top never hold back the rows below: every changed row goes out within QcMapData::size takes.
Member Function Documentation
void QcMapPending::add(QPoint pixel)
Marks pixel as changed (ignored outside the map).
bool QcMapPending::isEmpty() const
Returns whether no pixel waits.
QRect QcMapPending::take(int budget)
Returns the next changed rows from the row to go on from, as one rectangle of at most budget pixels (adjacent changed rows, as wide as their widest span); those rows no longer wait. An empty rectangle when nothing waits or one row is wider than the budget.
[static] QcMapPending QcMapPending::whole()
Returns pending pixels where every pixel waits (a map the player never had).