Batch *readBatch(char *str, FILE *file) { int id = getBatchId(str); Batch *batch = createBatch(id); readMessages(batch, file); return batch; }
void ActionQueue::addAction(Action* action, int stacking_delay) { BatchAction* batch = createBatch(action->getType()); batch->addAndCommitAction(action); if(batch->size() == 0) { delete batch; return; } addBatch(batch, stacking_delay); }
inline explicit BatchInfo () : index(count++) { if (!flank_5) createBatch (size); }