139 |
Object::is_kind(const char *kind_templ) const { |
Object::is_kind(const char *kind_templ) const { |
140 |
return string_match(get_kind(), kind_templ); |
return string_match(get_kind(), kind_templ); |
141 |
} |
} |
142 |
|
bool |
143 |
|
Object::is_kind(const string& kind_templ) const { |
144 |
|
return string_match(get_kind(), kind_templ.c_str()); |
145 |
|
} |
146 |
|
|
147 |
void |
void |
148 |
Object::set_attrib(const string& key, const Value& val) |
Object::set_attrib(const string& key, const Value& val) |
316 |
|
|
317 |
px::V2 Floor::process_mouseforce (Actor *a, px::V2 force) |
px::V2 Floor::process_mouseforce (Actor *a, px::V2 force) |
318 |
{ |
{ |
319 |
if (a->int_attrib("player") == player::CurrentPlayer()) |
if (player::IsCurrentPlayer(a)) |
320 |
return mousefactor() * force; |
return mousefactor() * force; |
321 |
else |
else |
322 |
return V2(); |
return V2(); |
633 |
|
|
634 |
px::V2 process_mouseforce (Actor *a, px::V2 force) |
px::V2 process_mouseforce (Actor *a, px::V2 force) |
635 |
{ |
{ |
636 |
if (a->int_attrib("player") == 0 && player::CurrentPlayer() == 0) |
if (player::CurrentPlayer() == 0 && player::IsCurrentPlayer(a)) |
637 |
return mousefactor() * force; |
return mousefactor() * force; |
638 |
else |
else |
639 |
return V2(); |
return V2(); |
646 |
|
|
647 |
px::V2 process_mouseforce (Actor *a, px::V2 force) |
px::V2 process_mouseforce (Actor *a, px::V2 force) |
648 |
{ |
{ |
649 |
if (a->int_attrib("player") == 1 && player::CurrentPlayer() == 1) |
if (player::CurrentPlayer() == 1 && player::IsCurrentPlayer(a)) |
650 |
return mousefactor() * force; |
return mousefactor() * force; |
651 |
else |
else |
652 |
return V2(); |
return V2(); |