Back to index

python3.2  3.2.2
Public Member Functions | Public Attributes
turtledemo.nim.NimController Class Reference
Inheritance diagram for turtledemo.nim.NimController:
Inheritance graph
Collaboration diagram for turtledemo.nim.NimController:
Collaboration graph

List of all members.

Public Member Functions

def __init__
def notify_move

Public Attributes

_PyObject_HEAD_EXTRA Py_ssize_t ob_refcnt
struct _typeobjectob_type

Detailed Description

Definition at line 184 of file

Constructor & Destructor Documentation

def turtledemo.nim.NimController.__init__ (   self,

Definition at line 186 of file

00187     def __init__(self, game):
00188 = game
00189         self.sticks = game.view.sticks
00190         self.BUSY = False
00191         for stick in self.sticks.values():
00192             stick.onclick(stick.makemove)
00193, "space")
00194, "Escape")
00195"Press space bar to start game")

Here is the caller graph for this function:

Member Function Documentation

def turtledemo.nim.NimController.notify_move (   self,

Definition at line 197 of file

00198     def notify_move(self, row, col):
00199         if self.BUSY:
00200             return
00201         self.BUSY = True
00202, col)
00203         self.BUSY = False

Member Data Documentation

Definition at line 189 of file

Definition at line 187 of file

Definition at line 107 of file object.h.

struct _typeobject* _object::ob_type [inherited]

Definition at line 108 of file object.h.

Definition at line 188 of file

The documentation for this class was generated from the following file: