X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fhost.h;h=ec2741d6b7127183381cb6f858b054b8d0fd5dc2;hb=cc29ebb178d4695573f10a829534cb660e14e79d;hp=2910ad694577f2412d459d95205cb54c2f415d08;hpb=a56b7174bc4d39064e5fb8d22953963f224315db;p=netvis.git diff --git a/source/host.h b/source/host.h index 2910ad6..ec2741d 100644 --- a/source/host.h +++ b/source/host.h @@ -11,6 +11,7 @@ Distributed unter the GPL #include #include #include +#include "activity.h" #include "vector2.h" class NetVis; @@ -25,7 +26,7 @@ private: bool local; Vector2 pos; bool active; - float activity; + Activity activity; float throttle; public: @@ -41,12 +42,11 @@ 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 &); void render() const; - void render_label() const; }; #endif