3 This file is part of NetVis
4 Copyright @ 2008 Mikko Rasa, Mikkosoft Productions
5 Distributed unter the GPL
13 #include <msp/time/timedelta.h>
25 std::string short_name;
33 Host(NetVis &, unsigned);
34 unsigned get_address() const { return addr; }
35 void set_name(const std::string &);
36 const std::string &get_name() const { return name; }
38 bool is_local() const { return local; }
40 void set_position(const Vector2 &);
41 const Vector2 &get_position() const { return pos; }
43 void set_active(bool);
44 bool get_active() const { return active; }
45 void add_activity(unsigned);
46 float get_activity() const { return activity.get_average(); }
49 void tick(const Msp::Time::TimeDelta &);