| Home | Trees | Index | Help |
|---|
|
|
object --+
|
LevelEditorTool --+
|
EntityTool --+
|
PlatformTool
BouncyPlatformTool| Method Summary | |
|---|---|
__init__(self,
level,
display)
| |
Move (if they drag by the middle) or resize (if by edges) | |
Resize the newly created platform | |
Return true if this tool should manipulate the given entity. | |
resize(self,
platform,
x,
y)
| |
start_drag_entity(self,
platform,
x,
y)
| |
Create a new platform | |
| Inherited from EntityTool | |
Turn this tool on. | |
Add the given entity to the level, and mark it as applicable. | |
Called when the user clicks the left mouse button on an entity; by default, this method selects the entity. | |
Called when the user clicks the left mouse button on an empty area; by default, this creates a new entity. | |
Turn this tool off. | |
| |
| |
| |
| |
| |
| |
Select the subtool corresponding to the given icon | |
Called when the user finishes dragging an entity with the left mouse button; by default, this does nothing. | |
Called when the user finishes dragging in empty space with the left mouse button; by default, this does nothing. | |
| |
| Inherited from LevelEditorTool | |
| |
| Inherited from object | |
x.__delattr__('name') <==> del x.name | |
x.__getattribute__('name') <==> x.name | |
Return hash(x)... | |
Return a new object with type S, a subtype of T... | |
helper for pickle | |
helper for pickle | |
Return repr(x)... | |
x.__setattr__('name', value) <==> x.name = value | |
Return str(x)... | |
| Instance Variable Summary | |
|---|---|
NoneType |
shortcut: The keyboard shortcut for this tool, or None if this tool
doesn't have a keyboard shortcut. |
| Inherited from EntityTool | |
selection: The currently selected entity, or None if no entity is
selected | |
| Class Variable Summary | |
|---|---|
str |
cat = 'TwigPlatform'
|
str |
dragmode = 'move'
|
NoneType |
entity_factories: A list of entity constructors or factory functions, which take (x,y)
as input and return a new entity. |
| Inherited from EntityTool | |
entity_factory: The currently selected entity factory function. | |
bool |
hide_body_markers = True
|
| Method Details |
|---|
__init__(self,
level,
display)
|
drag_entity(self, platform, oldx, oldy, newx, newy)Move (if they drag by the middle) or resize (if by edges) |
drag_space(self, oldx, oldy, newx, newy)Resize the newly created platform |
relevant(self, entity)Return true if this tool should manipulate the given entity.
|
resize(self, platform, x, y) |
start_drag_entity(self, platform, x, y) |
start_drag_space(self, x, y)Create a new platform |
| Instance Variable Details |
|---|
shortcutThe keyboard shortcut for this tool, orNone if this tool
doesn't have a keyboard shortcut.
|
| Class Variable Details |
|---|
cat
|
dragmode
|
| Home | Trees | Index | Help |
|---|
| Generated by Epydoc 2.1 on Thu Sep 22 22:52:49 2005 | http://epydoc.sf.net |