diff --git a/maedn/Board.py b/maedn/Board.py index 2e9c0b6..3447045 100644 --- a/maedn/Board.py +++ b/maedn/Board.py @@ -1,21 +1,58 @@ -# coding=UTF-8 +from House import * +from Field import * class Board(object): """ - - :version: :author: """ """ ATTRIBUTES - - dict_all_fields (private) """ + def get_house_by_color(self, color = "black"): + """ + + + @param string color : + @return House : + @author + """ + pass + + def init_board(self): + """ + + + @return : + @author + """ + pass + + def get_next_standard_field(self, current_field): + """ + + + @param Field current_field : + @return Field : + @author + """ + pass + + def get_next_field_by_color(self, current_field, color = "black"): + """ + + + @param Field current_field : Current field + @param string color : Color of the stone requesting his next field. + @return Field : + @author + """ + pass + diff --git a/maedn/Field.py b/maedn/Field.py index 3f0ff41..06972f3 100644 --- a/maedn/Field.py +++ b/maedn/Field.py @@ -1,26 +1,34 @@ -# coding=UTF-8 from Board import * class Field(object): """ - - :version: :author: """ """ ATTRIBUTES - - board (private) - - occupied (private) + number (private) + + color (private) + """ + def get_next_field(self, color_of_stone = "black"): + """ + Give back next field on board, dependent on the color of a stone on the current + field. + + @param string color_of_stone : + @return Field : + @author + """ + pass + diff --git a/maedn/GameController.py b/maedn/GameController.py index bffb4fb..4307787 100644 --- a/maedn/GameController.py +++ b/maedn/GameController.py @@ -1,26 +1,22 @@ -# coding=UTF-8 from Player import * from Board import * +from GameView import * class GameController(object): """ - - :version: :author: """ """ ATTRIBUTES - - list_of_players (private) - - board (private) + game_view (private) + """ def add_player(self, name, color): diff --git a/maedn/GameView.py b/maedn/GameView.py index 89dc5fb..f80010b 100644 --- a/maedn/GameView.py +++ b/maedn/GameView.py @@ -1,13 +1,28 @@ -# coding=UTF-8 class GameView(object): """ - - :version: :author: """ + def display_board(self): + """ + + + @return : + @author + """ + pass + + def update_board(self): + """ + + + @return : + @author + """ + pass + diff --git a/maedn/House.py b/maedn/House.py index 75d2631..eaf2061 100644 --- a/maedn/House.py +++ b/maedn/House.py @@ -1,13 +1,18 @@ -# coding=UTF-8 class House(object): """ - - :version: :author: """ + """ ATTRIBUTES + + is_full (private) + + list_of_fields (private) + + """ + diff --git a/maedn/Player.py b/maedn/Player.py index 790e6b4..585c7c0 100644 --- a/maedn/Player.py +++ b/maedn/Player.py @@ -1,32 +1,21 @@ -# coding=UTF-8 from GameController import * from House import * class Player(object): """ - - :version: :author: """ """ ATTRIBUTES - - name (private) - - color (private) - - set_of_stones (private) - - house (private) """ diff --git a/maedn/Position.py b/maedn/Position.py index 999db02..7f2d9ea 100644 --- a/maedn/Position.py +++ b/maedn/Position.py @@ -1,37 +1,42 @@ -# coding=UTF-8 +from Field import * class Position(object): """ - - :version: :author: """ """ ATTRIBUTES - - - color_area (private) - - - - number_of_field (private) - - + field (private) on_board (private) - - in_house (private) - - on_start (private) """ + def init_pos(self): + """ + + + @return : + @author + """ + pass + + def change_pos(self, num): + """ + + + @param int num : + @return : + @author + """ + pass + diff --git a/maedn/Stone.py b/maedn/Stone.py index 7e0d6ff..9917996 100644 --- a/maedn/Stone.py +++ b/maedn/Stone.py @@ -1,24 +1,17 @@ -# coding=UTF-8 from Position import * from Player import * class Stone(object): """ - - :version: :author: """ """ ATTRIBUTES - - player (private) - - position (private) """ diff --git a/maedn/modellierung_maedn.xmi b/maedn/modellierung_maedn.xmi index 1a920f4..1a03890 100644 --- a/maedn/modellierung_maedn.xmi +++ b/maedn/modellierung_maedn.xmi @@ -1,8 +1,8 @@ - + - umbrello uml modeller 2.32.1 http://umbrello.kde.org + umbrello uml modeller 2.32.3 http://umbrello.kde.org 1.7.3 UnicodeUTF8 @@ -46,6 +46,26 @@ + + + + + + + + + + + + + + + + + + + + @@ -81,6 +101,7 @@ + @@ -95,8 +116,18 @@ - - + + + + + + + + + + + + @@ -105,74 +136,101 @@ - - + + + + + + + + + + + + + + + - + - - - - - - - - + + + + + + + + - + - - + + - + - - + + - - - - - - - - - - - - - - - - + + - + - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -196,7 +254,7 @@ - + @@ -205,6 +263,10 @@ + + + + @@ -221,16 +283,26 @@ + + + + - - + + + + + + + + @@ -243,9 +315,10 @@ - - + + +