61 |
else if (action == "signal") { |
else if (action == "signal") { |
62 |
world::EmitSignals (o); |
world::EmitSignals (o); |
63 |
} |
} |
64 |
else if (Object *o = GetNamedObject(target)) { |
else if (Object *t = GetNamedObject(target)) { |
65 |
SendMessage(o, action); |
SendMessage(t, action); |
66 |
} |
} |
67 |
else { |
else { |
68 |
fprintf(stderr, "Unknown target '%s' for action '%s'\n", target.c_str(), action.c_str()); |
fprintf(stderr, "Unknown target '%s' for action '%s'\n", target.c_str(), action.c_str()); |
79 |
} |
} |
80 |
|
|
81 |
void |
void |
82 |
Object::message(const string& msg, const Value &val) |
Object::message(const string& /*msg*/, const Value &/*val*/) |
83 |
{ |
{ |
84 |
} |
} |
85 |
|
|
223 |
void |
void |
224 |
GridObject::warning(const char *format, ...) const { |
GridObject::warning(const char *format, ...) const { |
225 |
va_list arg_ptr; |
va_list arg_ptr; |
226 |
const GridPos& pos = get_pos(); |
const GridPos& position = get_pos(); |
227 |
|
|
228 |
va_start(arg_ptr, format); |
va_start(arg_ptr, format); |
229 |
cerr << setbase(16) << long(this) << " \"" << get_kind() << '\"' |
cerr << setbase(16) << long(this) << " \"" << get_kind() << '\"' |
230 |
<< setbase(8) << " at " << pos.x << '/' << pos.y << ": " |
<< setbase(8) << " at " << position.x << '/' << position.y << ": " |
231 |
<< vstrf(format, arg_ptr) << '\n'; |
<< vstrf(format, arg_ptr) << '\n'; |
232 |
va_end(arg_ptr); |
va_end(arg_ptr); |
233 |
} |
} |
239 |
// FLOORS |
// FLOORS |
240 |
//====================================================================== |
//====================================================================== |
241 |
|
|
242 |
Floor::Floor(const char *kind, double friction, double mfactor) |
Floor::Floor(const char *kind, double friction_, double mfactor) |
243 |
: TGridObject<GRID_FLOOR>(kind), |
: TGridObject<GRID_FLOOR>(kind), |
244 |
traits (kind, friction, mfactor, FLOOR_Normal) |
traits (kind, friction_, mfactor, FLOOR_Normal) |
245 |
{ |
{ |
246 |
} |
} |
247 |
|
|
260 |
} |
} |
261 |
|
|
262 |
void |
void |
263 |
Floor::message(const string& msg, const Value &val) |
Floor::message(const string& /*msg*/, const Value &/*val*/) |
264 |
{ |
{ |
265 |
} |
} |
266 |
|
|
377 |
} |
} |
378 |
|
|
379 |
px::V2 |
px::V2 |
380 |
Gradient::get_force(Actor *a) |
Gradient::get_force(Actor */*a*/) |
381 |
{ |
{ |
382 |
V2 force; |
V2 force; |
383 |
int t = get_type(); |
int t = get_type(); |