Stubbed out Drawable and MenuDrawable, added commenting for epydoc.
[asgard.git] / drawable.py
blobb5b0ddaf3385ec42d9aad08ff6729795a622a6c6
1 import Surface from pygame
3 class Drawable(Surface):
5 parent = None
6 """ Screen object that this drawable belongs to. """
8 def __init__(self):
9 """ Handles Surface inheritance. """
11 def draw(self):
12 """ A virtual method that draws this drawable onto itself. (Surface) """
13 pass
15 class MenuDrawable(Drawable):
17 menu = []
18 """ Sub MenuDrawable's that belong to this one. Mutually exclusive with text. Drawn with reference to offset x,y. Think cellpadding."""
20 text = ""
21 """ A string to be drawn inside this MenuDrawable. Mutually exclusive with menu. Drawn at offset x,y. Think cellpadding."""
23 offsetX = 0
24 """ x-Location of text or first sub-menu to be drawn to screen. """
26 offsetY = 0
27 """ y-Location of text or first sub-menu to be drawn to screen. """
29 border = True
30 """ Whether or not this MenuDrawable has a border or not."""
32 def __init__(self):
33 """ Handles Drawable inheritance. """
34 pass
36 def draw(self):
37 """ Draws a menu onto this drawable's surface. """
38 pass