Class Diagram
2016-07-13 19:47:39 0 举报
2016小学期python
作者其他创作
大纲/内容
food
+get_food_value()
Perosn
+take()+remove()+go()+get_inventory()+objects_around()+get_exits()
mobileObject
+get_place
RangedWeapon
+shots_left()+load()+damage()
Ammo
+get_quantity()+weapon_type()+remove_all()
Weapon
+min_damage()+max_damage()+damage()
Animal
+get_food_value()+go_to_heaven()
Object
NamedObject
+ getName()
Tribute
+get_hunger()+add_hunger()+reduce_hunger()+eat()+get_weapon()+get_food()+get_medicine()+attack()
Medicine
+get_medicine_value()
thing
+set_owner()+get_owner()+is_owened()
place
+add_object()+del_object()+get_objects()+get_exits()+add_neighbor()+get_neighbor()+random_neighbor()
LivingThing
+get_threshold()+get_health()+add_health()+reduce_health()+to_to_heaven()+act()
0 条评论
下一页