summaryrefslogtreecommitdiff
path: root/game/orders.cpp
blob: 18fc8890c4703370c91fef3f1bdd01ac247cc1da (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#include "orders.h"
#include <algorithm>
#include <vector>

Objective *
Orders::current() const
{
	return objects.front().get();
}

Objective *
Orders::next()
{
	std::rotate(objects.begin(), objects.begin() + 1, objects.end());
	return current();
}