Parent Directory | Revision Log | Patch
revision 1.5 by dheck, Sat Apr 5 09:40:07 2003 UTC | revision 1.6 by dheck, Sat Apr 26 07:29:40 2003 UTC | |
---|---|---|
# | Line 100 namespace world | Line 100 namespace world |
100 | virtual void notify_onoff(bool on) {} | virtual void notify_onoff(bool on) {} |
101 | ||
102 | void message(const string &m, const Value &) { | void message(const string &m, const Value &) { |
103 | if (m == "on") | if (m=="onoff" || m=="signal") |
104 | set_on(!is_on()); | |
105 | else if (m == "on") | |
106 | set_on(true); | set_on(true); |
107 | else if (m=="off") | else if (m=="off") |
108 | set_on(false); | set_on(false); |
else if (m=="onoff") | ||
set_on(!is_on()); | ||
109 | } | } |
110 | }; | }; |
111 |
|
savannah-hackers-public@gnu.org | ViewVC Help |
Powered by ViewVC 1.1.26 |