first generated code
Code aus erster Modellierung
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
# coding=UTF-8
|
||||
|
||||
class Board(object):
|
||||
|
||||
"""
|
||||
|
||||
|
||||
:version:
|
||||
:author:
|
||||
"""
|
||||
|
||||
""" ATTRIBUTES
|
||||
|
||||
|
||||
|
||||
dict_all_fields (private)
|
||||
|
||||
"""
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,26 @@
|
||||
# coding=UTF-8
|
||||
from Board import *
|
||||
|
||||
class Field(object):
|
||||
|
||||
"""
|
||||
|
||||
|
||||
:version:
|
||||
:author:
|
||||
"""
|
||||
|
||||
""" ATTRIBUTES
|
||||
|
||||
|
||||
|
||||
board (private)
|
||||
|
||||
|
||||
|
||||
occupied (private)
|
||||
|
||||
"""
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,48 @@
|
||||
# coding=UTF-8
|
||||
from Player import *
|
||||
from Board import *
|
||||
|
||||
class GameController(object):
|
||||
|
||||
"""
|
||||
|
||||
|
||||
:version:
|
||||
:author:
|
||||
"""
|
||||
|
||||
""" ATTRIBUTES
|
||||
|
||||
|
||||
|
||||
list_of_players (private)
|
||||
|
||||
|
||||
|
||||
board (private)
|
||||
|
||||
"""
|
||||
|
||||
def add_player(self, name, color):
|
||||
"""
|
||||
|
||||
|
||||
@param string name :
|
||||
@param string color :
|
||||
@return Player :
|
||||
@author
|
||||
"""
|
||||
pass
|
||||
|
||||
def remove_player(self, color):
|
||||
"""
|
||||
|
||||
|
||||
@param string color :
|
||||
@return :
|
||||
@author
|
||||
"""
|
||||
pass
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
# coding=UTF-8
|
||||
|
||||
class GameView(object):
|
||||
|
||||
"""
|
||||
|
||||
|
||||
:version:
|
||||
:author:
|
||||
"""
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
# coding=UTF-8
|
||||
|
||||
class House(object):
|
||||
|
||||
"""
|
||||
|
||||
|
||||
:version:
|
||||
:author:
|
||||
"""
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user