#include <map>
#include <string>
#include <msp/time/timedelta.h>
+#include "activity.h"
#include "vector2.h"
class NetVis;
bool local;
Vector2 pos;
bool active;
- float activity;
+ Activity activity;
float throttle;
public:
void set_active(bool);
bool get_active() const { return active; }
void add_activity(unsigned);
- float get_activity() const { return activity; }
+ float get_activity() const { return activity.get_average(); }
float send_packet();
void tick(const Msp::Time::TimeDelta &);