From 425f7235012eb27b450ad8dbf1e5cd340e1ea823 Mon Sep 17 00:00:00 2001 From: Martin Putzlocher Date: Mon, 4 Apr 2022 06:19:04 +0000 Subject: [PATCH] additional uml generated code --- maedn/Player.py | 71 +++++++++++++++++++++++++++++++++++++++++++++++ maedn/Position.py | 37 ++++++++++++++++++++++++ maedn/Stone.py | 56 +++++++++++++++++++++++++++++++++++++ 3 files changed, 164 insertions(+) create mode 100644 maedn/Player.py create mode 100644 maedn/Position.py create mode 100644 maedn/Stone.py diff --git a/maedn/Player.py b/maedn/Player.py new file mode 100644 index 0000000..790e6b4 --- /dev/null +++ b/maedn/Player.py @@ -0,0 +1,71 @@ +# 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) + + """ + + def take_turn(self): + """ + + + @return : + @author + """ + pass + + def throw_dice(self): + """ + + + @return : + @author + """ + pass + + def choose_stone(self): + """ + + + @return : + @author + """ + pass + + def move_stone(self): + """ + + + @return : + @author + """ + pass + + + diff --git a/maedn/Position.py b/maedn/Position.py new file mode 100644 index 0000000..999db02 --- /dev/null +++ b/maedn/Position.py @@ -0,0 +1,37 @@ +# coding=UTF-8 + +class Position(object): + + """ + + + :version: + :author: + """ + + """ ATTRIBUTES + + + + color_area (private) + + + + number_of_field (private) + + + + on_board (private) + + + + in_house (private) + + + + on_start (private) + + """ + + + diff --git a/maedn/Stone.py b/maedn/Stone.py new file mode 100644 index 0000000..7e0d6ff --- /dev/null +++ b/maedn/Stone.py @@ -0,0 +1,56 @@ +# coding=UTF-8 +from Position import * +from Player import * + +class Stone(object): + + """ + + + :version: + :author: + """ + + """ ATTRIBUTES + + + + player (private) + + + + position (private) + + """ + + def back_to_start(self): + """ + + + @return : + @author + """ + pass + + def set_position(self, position): + """ + + + @param Position position : + @return : + @author + """ + pass + + def __move(self, number_of_fields): + """ + + + @param int number_of_fields : + @return : + @author + """ + pass + + +