Trees | Indices | Toggle frames |
---|
rect.Rect --+ | Cell --+ | RectCell
A rectangular cell from a MapLayer.
The cell may have the standard properties "top", "left", "bottom" and "right" which are booleans indicating that those sides are impassable. These are used by RectCellCollider.
Note that all pixel attributes are not adjusted for screen, view or layer transformations.
__init__(self,
i,
j,
width,
height,
properties,
tile)
Create a Rect with the bottom-left corner at (x, y) and
dimensions (width, height).
|
|
__contains__(self, key) (Inherited from cocos.tiles.Cell) | |
__eq__(self,
other)
Compare the two rects.
(Inherited from cocos.rect.Rect)
|
|
__getitem__(self, key) (Inherited from cocos.tiles.Cell) | |
__ne__(self,
other)
Compare the two rects.
(Inherited from cocos.rect.Rect)
|
|
__nonzero__(self) (Inherited from cocos.rect.Rect) | |
__repr__(self) (Inherited from cocos.rect.Rect) | |
__setitem__(self, key, value) (Inherited from cocos.tiles.Cell) | |
clippedBy(self,
other)
Determine whether this rect is clipped by the other rect.
(Inherited from cocos.rect.Rect)
|
|
contains(self,
x,
y)
Return boolean whether the point defined by x, y is inside the
rect area.
(Inherited from cocos.rect.Rect)
|
|
copy(self) (Inherited from cocos.rect.Rect) | |
get(self, key, default=None) (Inherited from cocos.tiles.Cell) | |
get_bottom(self) (Inherited from cocos.rect.Rect) | |
get_bottomleft(self) (Inherited from cocos.rect.Rect) | |
get_bottomright(self) (Inherited from cocos.rect.Rect) | |
get_center(self) (Inherited from cocos.rect.Rect) | |
get_left(self) (Inherited from cocos.rect.Rect) | |
get_midbottom(self) (Inherited from cocos.rect.Rect) | |
get_midleft(self) (Inherited from cocos.rect.Rect) | |
get_midright(self) (Inherited from cocos.rect.Rect) | |
get_midtop(self) (Inherited from cocos.rect.Rect) | |
get_origin(self) (Inherited from cocos.rect.Rect) | |
get_right(self) (Inherited from cocos.rect.Rect) | |
get_top(self) (Inherited from cocos.rect.Rect) | |
get_topleft(self) (Inherited from cocos.rect.Rect) | |
get_topright(self) (Inherited from cocos.rect.Rect) | |
intersect(self,
other)
Find the intersection of two Rects.
(Inherited from cocos.rect.Rect)
|
|
intersects(self,
other)
Return boolean whether the "other" rect (an object with .x, .y,
.width and .height attributes) overlaps this Rect in any way.
(Inherited from cocos.rect.Rect)
|
|
set_bottom(self, y) (Inherited from cocos.rect.Rect) | |
set_bottomleft(self, position) (Inherited from cocos.rect.Rect) | |
set_bottomright(self, position) (Inherited from cocos.rect.Rect) | |
set_center(self, center) (Inherited from cocos.rect.Rect) | |
set_height(self, value) (Inherited from cocos.rect.Rect) | |
set_left(self, x) (Inherited from cocos.rect.Rect) | |
set_midbottom(self, midbottom) (Inherited from cocos.rect.Rect) | |
set_midleft(self, midleft) (Inherited from cocos.rect.Rect) | |
set_midright(self, midright) (Inherited from cocos.rect.Rect) | |
set_midtop(self, midtop) (Inherited from cocos.rect.Rect) | |
set_origin(self, origin) (Inherited from cocos.rect.Rect) | |
set_position(self, value) (Inherited from cocos.rect.Rect) | |
set_right(self, x) (Inherited from cocos.rect.Rect) | |
set_size(self, value) (Inherited from cocos.rect.Rect) | |
set_top(self, y) (Inherited from cocos.rect.Rect) | |
set_topleft(self, position) (Inherited from cocos.rect.Rect) | |
set_topright(self, position) (Inherited from cocos.rect.Rect) | |
set_width(self, value) (Inherited from cocos.rect.Rect) | |
set_x(self, value) (Inherited from cocos.rect.Rect) | |
set_y(self, value) (Inherited from cocos.rect.Rect) |
origin | |
top | |
bottom | |
center | |
midtop | |
midbottom | |
left | |
right | |
topleft | |
topright | |
bottomleft | |
bottomright | |
midleft | |
midright | |
height (Inherited from cocos.rect.Rect) | |
position (Inherited from cocos.rect.Rect) | |
size (Inherited from cocos.rect.Rect) | |
width (Inherited from cocos.rect.Rect) | |
x (Inherited from cocos.rect.Rect) | |
y (Inherited from cocos.rect.Rect) |
Trees | Indices | Toggle frames |
---|
Generated by Epydoc 3.0beta1 on Wed Jul 07 22:46:54 2010 | http://epydoc.sourceforge.net |