Package svs_demogame :: Module gameviews :: Class AgentView
[show private | hide private]
[frames | no frames]

Class AgentView

GenericComponentView --+
                       |
                      AgentView


Draws agent.
Method Summary
  __init__(self, context, idNum, gameData)
  deselect(self)
Deselects sprite.
  drawFresh(self, drawWidth, drawHeight)
Creates component on display context.
  onDoubleClick(self, event)
Responds to double-click from mouse.
  onSingleClick(self, event)
Responds to single-click from mouse.
  select(self)
Selects sprite.
  setLocation(self, locX, locY)
Handles info from svs_demogame.agents.AgentState object.
  setOrientation(self, newfacing)
Sets angle in which agent is facing.
  updateDirection(self)
Draws updated direction pointer for agent.
  updateLocation(self)
Draws updated position of agent.
    Inherited from GenericComponentView
  containsPoint(self, x, y)
If point is within bounds of component, returns True, otherwise False.

Method Details

deselect(self)

Deselects sprite.
Overrides:
svs_demogame.views.GenericComponentView.deselect

drawFresh(self, drawWidth, drawHeight)

Creates component on display context.

onDoubleClick(self, event)

Responds to double-click from mouse.

onSingleClick(self, event)

Responds to single-click from mouse.

select(self)

Selects sprite.
Overrides:
svs_demogame.views.GenericComponentView.select

setLocation(self, locX, locY)

Handles info from svs_demogame.agents.AgentState object.

setOrientation(self, newfacing)

Sets angle in which agent is facing.

updateDirection(self)

Draws updated direction pointer for agent.

updateLocation(self)

Draws updated position of agent.

Generated by Epydoc 2.1 on Thu Oct 20 15:30:24 2005 http://epydoc.sf.net