comparison src/parpg/gamemodel.py @ 84:1e7465a785c4

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 62cff91a19cb
children d89e88a90c9e
comparison
equal deleted inserted replaced
83:9f8faf6e974d 84:1e7465a785c4
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"])