Memit - All
Author: | Carlo E. T. Oliveira |
Contact: | carlo@nce.ufrj.br |
Date: | $Date: 2013/03/17 $ |
Status: | This is a “work in progress” |
Revision: | $Revision: 0.1 $ |
Home: | Labase |
Copyright: | 2011, GPL. |
Serious Game in cavalier projection for memetics.
__author__ = “Carlo E. T. Oliveira (carlo@nce.ufrj.br) $Author: carlo $”
__version__ = “0.2 $Revision$”[10:-1]
__date__ = “2013/03/17 $Date$”
-
class memit.Board(gui)[source]
A meme game board with a 3D cube, some pieces, score and puzzle. Board
-
drag(p=None)[source]
Enable placement of pieces. Arg p is the piece being dragged
-
next_jig()[source]
Remove the next piece from the puzzle.
-
place(*a)[source]
Placement state method. Assumes _place (active) or _busy states
-
remove(piece)[source]
acts as a default null house
-
tick()[source]
Time tick updates pump display value and makes the drops fall
-
class memit.Cube(gui, bottom_image, rear_image, side_image)[source]
A 3D game memetic space represented in a cavalier projection. Cube
-
hide()[source]
-
show()[source]
-
class memit.Dialog(gui, img='/studio/paje.png', text='', act=<function <lambda> at 0x1afed70>)[source]
Floating panel holding an editable text area. Dialog
-
action(event)[source]
-
get_text()[source]
-
hide()[source]
-
set_text(text)[source]
-
show()[source]
-
class memit.Form(gui=None)[source]
Collects demographic info and send results to the server. Form
-
class memit.GUI(panel, data)[source]
Factory creating SVG elements, unpacking extra arguments. GUI
-
avatar()[source]
-
clear()[source]
-
click(handler)[source]
-
cling(level, element)[source]
-
dialog(text, img='/studio/paje.png', act=<function <lambda> at 0x1c21410>)[source]
-
ellipse(href, cx=0, cy=0, rx=100, ry=50, style={}, **kw)[source]
-
get_args()[source]
-
group(group=None, layer=0)[source]
-
handler(key, handle)[source]
-
image(href, x=0, y=0, width=100, height=50, **kw)[source]
-
over(handler)[source]
-
path(d, style={}, onMouseOver='noop', onMouseOut='noop')[source]
-
rect(x=0, y=0, width=100, height=50, style={})[source]
-
remove(element)[source]
-
request(url='/rest/studio/jeppeto?type=2', action=None, data='')[source]
-
set(element)[source]
-
text(text, x=150, y=25, font_size=22, text_anchor='middle', style={})[source]
-
textarea(text, x, y, w, h, style={})[source]
-
up(element)[source]
-
class memit.House(gui, i, j, k, fill, r, g, b, board)[source]
marks a 3D location inside the cube where a piece can be deployed. House
-
on_click(ev)[source]
-
on_out(ev)[source]
-
on_over(ev)[source]
Projects three guiding shadows on the orthogonal cube walls
-
remove(piece)[source]
Remove a piece from the house and set state to receive a new piece
-
class memit.Marker(gui, x, y, fill, face)[source]
Colored shadow on the walls helping the user to deploy a piece in 3D. Marker
-
hide()[source]
-
on_over(ev, i, j, k)[source]
-
show(x, y)[source]
-
class memit.Phase(gui, back_layer, puzzle, component)[source]
A game stage with a particular scenario and pieces. Phase
-
cube = None
The 3D cube for this phase.
-
hide()[source]
-
next_jig()[source]
Remove the next piece from the puzzle.
-
piece_places = None
Original placement of pieces at phase startup.
-
pieces = None
Set of pieces to play in this phase.
-
reset()[source]
Rearrange all pieces into original placement.
-
show()[source]
-
class memit.Piece(gui, x, y, fill, r, g, b, board, pid)[source]
Bases: memit.Marker
Represents the user choice when deployed insde the 3D open cube. Piece
-
do_markers(*a)[source]
-
next_jig()[source]
Remove the next piece from the puzzle.
-
on_click(ev)[source]
-
on_out(ev)[source]
-
on_over(ev)[source]
-
place(z, y, x, house)[source]
-
reset(x, y)[source]
-
show(x, y)[source]
-
memit.logger(*a)
-
memit.main(dc, pn, gui, repo)[source]
Starting point
-
memit.setinterval(a, b)