comparison gamemodel.py @ 57:ba85e5aff370

Removed the pos value from the fifeagent component. getItemActions of Gamescenecontroller gets the position by calling a method of the behaviour.
author KarstenBock@gmx.net
date Fri, 09 Sep 2011 15:30:23 +0200
parents 3dfd26b1c7ef
children 2727d6b78978
comparison
equal deleted inserted replaced
56:3f6299f975fe 57:ba85e5aff370
500 500
501 inst_dict = {} 501 inst_dict = {}
502 inst_dict["identifier"] = inst_id 502 inst_dict["identifier"] = inst_id
503 inst_dict["world"]= world 503 inst_dict["world"]= world
504 inst_dict["type"] = object_type 504 inst_dict["type"] = object_type
505 inst_dict["pos"] = Vec2d(x_pos, y_pos)
506 inst_dict["gfx"] = object_id 505 inst_dict["gfx"] = object_id
507 if agent.has_key("Open"): 506 if agent.has_key("Open"):
508 inst_dict["is_open"] = parseBool(agent["Open"]) 507 inst_dict["is_open"] = parseBool(agent["Open"])
509 if agent.has_key("Locked"): 508 if agent.has_key("Locked"):
510 inst_dict["locked"] = parseBool(agent["Locked"]) 509 inst_dict["locked"] = parseBool(agent["Locked"])