Module pajammin.entity.agent.agent
Characters in the world, such as turtles, snakes, and the player's
avatar. Each type of agent is defined using a subclass of Agent
; and each individual game-level
object is represented by a single instance of one of those
subclasses.
The Agent
class defines the basic attributes and
properties that all agents share. Subclasses of Agent
, such
as Walker
and Flyer
, are used to add support for
performing different sets of actions. These are subclassed further to
define specific agent types, such as GreenTurtle
or RedBird
.
This module also defines several helper classes used by agent:
-
SpeechBubble
is a graphical widget used
to display speech bubbles.
-
AttackType
defines attack types that an
agent can use
-
Effect
s are temporary changes to an
agent's fixed properties, such as its maximum health or speed.