| 3086 | } |
| 3087 | |
| 3088 | MovementObject* ASReadCharacterID(int which) { |
| 3089 | if (which == -1) { |
| 3090 | std::string callstack = active_context_stack.top()->GetCallstack(); |
| 3091 | LOGW << "Called ReadCharacter ID with parameter -1 from\n " << callstack.c_str() << std::endl; |
| 3092 | return NULL; |
| 3093 | } |
| 3094 | Object* obj = the_scenegraph->GetObjectFromID(which); |
| 3095 | if (!obj || obj->GetType() != _movement_object) { |
| 3096 | std::string callstack = active_context_stack.top()->GetCallstack(); |
| 3097 | LOGE.Format("There is no movement object with id %d\n Called from:\n%s\n", which, callstack.c_str()); |
| 3098 | return NULL; |
| 3099 | } |
| 3100 | return (MovementObject*)obj; |
| 3101 | } |
| 3102 | |
| 3103 | int ASGetNumItems() { |
| 3104 | return the_scenegraph->item_objects_.size(); |
nothing calls this directly
no test coverage detected