home *** CD-ROM | disk | FTP | other *** search
Wrap
# Generator: et.tcl /main/titanic/9 # Argument(s): -e -dphase -a/user/resc/TicSystem.tcl # Interpreter to use: Otsh V7.1.1/F5 # OTShRegister::importTool set diag [CDM new TicTacToe_Cell "TicTacToe" "" "" "" "" "" 1] set row1 [$diag addRow attribute 0.0] $row1 setLabel "name_type" "contents: String = ' '" $row1 setProp "initial_value" "' '" $row1 setScope "name_type" "cl" "scopePhase" set row2 [$diag addRow method 0.0] $row2 setLabel "name_type" "getMaxLine(): Integer\n" $row2 setProp "has_parmlist" "1" $row2 setProp "freeText" "Returns the highest number of connected cells in a line,\nwhere each cell contains the same symbol as this cell." "name_type" "pe" $row2 setScope "name_type" "cl" "scopePhase" set row3 [$diag addRow method 0.0] $row3 setLabel "name_type" "getLine(): Integer" $row3 setProp "has_parmlist" "1" $row3 setProp "freeText" "Returns the highest number of connected cells in a line in a specific\ndirection, where each cell contains the same specified symbol." "name_type" "pe" $row3 setScope "name_type" "cl" "scopePhase" set cell4 [$row3 addCell parameter 0.0] $cell4 setLabel "name_type" "dir: String, " $cell4 setScope "name_type" "cl" "scopePhase" $cell4 setScope "name_type" "de" "scopeFile" set cell5 [$row3 addCell parameter 0.0] $cell5 setLabel "name_type" "x: String" $cell5 setScope "name_type" "cl" "scopePhase" $cell5 setScope "name_type" "de" "scopeFile" $diag save # Generator: et.tcl /main/titanic/9 # Argument(s): -e -dphase -a/user/resc/TicSystem.tcl # Interpreter to use: Otsh V7.1.1/F5 # OTShRegister::importTool set diag [CDM new TicTacToe_GameMenu "TicTacToe" "" "" "" "" "" 1] $diag save # Generator: et.tcl /main/titanic/9 # Argument(s): -e -dphase -a/user/resc/TicSystem.tcl # Interpreter to use: Otsh V7.1.1/F5 # OTShRegister::importTool set diag [CAD new TTicTacToe_GUI "TicTacToe" "" "" "" "" "" 1] set node10 [$diag addNode cad_class 1392.0 1040.0 146.0 33.0] $node10 setLabel "name" "TicTacToe_Board" $node10 setProp "is_folded" "1" $node10 setScope "name" "cl" "scopePhase" $node10 setProp "freeText" "This is a panel that forms the board." "name" "cl" set node11 [$diag addNode cad_class 800.0 928.0 149.0 97.0] $node11 setLabel "name" "TicTacToe_Result" $node11 setScope "name" "cl" "scopePhase" set node12 [$diag addNode cad_class 816.0 800.0 120.0 33.0] $node12 setLabel "name" "TLabel" $node12 setProp "is_folded" "1" $node12 setScope "name" "cl" "scopePhase" $node12 setProp "is_declaration" "1" "name" "cl" $node12 setProp "libunit" "StdCtrls" "name" "cl" set node13 [$diag addNode cad_class 1376.0 928.0 177.0 33.0] $node13 setLabel "name" "TicTacToe_MainMenu" $node13 setProp "is_folded" "1" $node13 setScope "name" "cl" "scopePhase" $node13 setProp "freeText" "Tic Tac Toe Main menu" "name" "cl" set node14 [$diag addNode cad_class 1072.0 928.0 228.0 202.0] $node14 setLabel "name" "TTicTacToe_GUI" $node14 setScope "name" "cl" "scopePhase" $node14 setProp "freeText" "Graphical User Interface of the game." "name" "cl" $node14 setProp "is_mainform" "1" "name" "cl" set node15 [$diag addNode cad_class 1088.0 800.0 120.0 33.0] $node15 setLabel "name" "TForm" $node15 setProp "is_folded" "1" $node15 setScope "name" "cl" "scopePhase" $node15 setProp "is_declaration" "1" "name" "cl" $node15 setProp "libunit" "Forms" "name" "cl" set node16 [$diag addNode cad_class 1184.0 1360.0 179.0 407.5] $node16 setLabel "name" "TicTacToe_CellButton" $node16 setScope "name" "cl" "scopePhase" set node17 [$diag addNode cad_class 1200.0 1248.0 120.0 33.0] $node17 setLabel "name" "TButton" $node17 setProp "is_folded" "1" $node17 setScope "name" "cl" "scopePhase" $node17 setProp "is_declaration" "1" "name" "cl" $node17 setProp "libunit" "StdCtrls" "name" "cl" set node18 [$diag addNode cad_class 896.0 1360.0 146.0 407.5] $node18 setLabel "name" "TicTacToe_Board" $node18 setScope "name" "cl" "scopePhase" $node18 setProp "freeText" "This is a panel that forms the board." "name" "cl" set node19 [$diag addNode cad_class 896.0 1248.0 120.0 33.0] $node19 setLabel "name" "TPanel" $node19 setProp "is_folded" "1" $node19 setScope "name" "cl" "scopePhase" $node19 setProp "is_declaration" "1" "name" "cl" $node19 setProp "libunit" "ExtCtrls" "name" "cl" set node6 [$diag addRake generalization $node12 $node11 880.0 832.0 880.0 960.0 896.0] set conn44 [$node6 getInConn] set segm45 [$conn44 getFirstSegm] set conn46 [$node6 getFirstOutConn] set segm47 [$conn46 getFirstSegm] set node7 [$diag addRake generalization $node15 $node14 1152.0 832.0 1152.0 928.0 895.5] set conn48 [$node7 getInConn] set segm49 [$conn48 getFirstSegm] set conn50 [$node7 getFirstOutConn] set segm51 [$conn50 getFirstSegm] set node8 [$diag addRake generalization $node17 $node16 1264.0 1280.0 1264.0 1392.0 1344.0] set conn52 [$node8 getInConn] set segm53 [$conn52 getFirstSegm] set conn54 [$node8 getFirstOutConn] set segm55 [$conn54 getFirstSegm] set node9 [$diag addRake generalization $node19 $node18 960.0 1280.0 960.0 1376.0 1327.5] set conn56 [$node9 getInConn] set segm57 [$conn56 getFirstSegm] set conn58 [$node9 getFirstOutConn] set segm59 [$conn58 getFirstSegm] set conn20 [$diag addConn aggregation $node14 $node10 1264.0 1056.0 1424.0 1056.0] $conn20 setLabel "role_end" "Board" $conn20 setProp "mult_kind_end" "one" $conn20 setProp "mult_kind_start" "optional" set segm21 [$conn20 getFirstSegm] set conn22 [$diag addConn aggregation $node14 $node11 1072.0 944.0 928.0 944.0] $conn22 setLabel "role_end" "Result" $conn22 setProp "mult_kind_end" "one" $conn22 setProp "mult_kind_start" "optional" set segm23 [$conn22 getFirstSegm] set conn24 [$diag addConn aggregation $node14 $node13 1200.0 944.0 1392.0 944.0] $conn24 setLabel "role_end" "MainMenu" $conn24 setProp "mult_kind_end" "one" $conn24 setProp "mult_kind_start" "optional" set segm25 [$conn24 getFirstSegm] set conn26 [$diag addConn aggregation $node18 $node16 1030.0 1760.0 1200.0 1760.0] $conn26 setLabel "role_end" "CellButton9" $conn26 setProp "mult_kind_end" "one" $conn26 setProp "mult_kind_start" "optional" set segm27 [$conn26 getFirstSegm] set conn28 [$diag addConn aggregation $node18 $node16 1030.0 1712.0 1200.0 1712.0] $conn28 setLabel "role_end" "CellButton8" $conn28 setProp "mult_kind_end" "one" $conn28 setProp "mult_kind_start" "optional" set segm29 [$conn28 getFirstSegm] set conn30 [$diag addConn aggregation $node18 $node16 1030.0 1664.0 1200.0 1664.0] $conn30 setLabel "role_end" "CellButton7" $conn30 setProp "mult_kind_end" "one" $conn30 setProp "mult_kind_start" "optional" set segm31 [$conn30 getFirstSegm] set conn32 [$diag addConn aggregation $node18 $node16 1024.0 1616.0 1200.0 1616.0] $conn32 setLabel "role_end" "CellButton6" $conn32 setProp "mult_kind_end" "one" $conn32 setProp "mult_kind_start" "optional" set segm33 [$conn32 getFirstSegm] set conn34 [$diag addConn aggregation $node18 $node16 1030.0 1568.0 1184.0 1568.0] $conn34 setLabel "role_end" "CellButton5" $conn34 setProp "mult_kind_end" "one" $conn34 setProp "mult_kind_start" "optional" set segm35 [$conn34 getFirstSegm] set conn36 [$diag addConn aggregation $node18 $node16 1024.0 1520.0 1200.0 1520.0] $conn36 setLabel "role_end" "CellButton4" $conn36 setProp "mult_kind_end" "one" $conn36 setProp "mult_kind_start" "optional" set segm37 [$conn36 getFirstSegm] set conn38 [$diag addConn aggregation $node18 $node16 1030.0 1472.0 1200.0 1472.0] $conn38 setLabel "role_end" "CellButton3" $conn38 setProp "mult_kind_end" "one" $conn38 setProp "mult_kind_start" "optional" set segm39 [$conn38 getFirstSegm] set conn40 [$diag addConn aggregation $node18 $node16 1030.0 1424.0 1200.0 1424.0] $conn40 setLabel "role_end" "CellButton2" $conn40 setProp "mult_kind_end" "one" $conn40 setProp "mult_kind_start" "optional" set segm41 [$conn40 getFirstSegm] set conn42 [$diag addConn aggregation $node18 $node16 1030.0 1376.0 1200.0 1376.0] $conn42 setLabel "role_end" "CellButton1" $conn42 setProp "mult_kind_end" "one" $conn42 setProp "mult_kind_start" "optional" set segm43 [$conn42 getFirstSegm] $diag save # Generator: et.tcl /main/titanic/9 # Argument(s): -e -dphase -a/user/resc/TicSystem.tcl # Interpreter to use: Otsh V7.1.1/F5 # OTShRegister::importTool set diag [CDM new TTicTacToe_GUI "TicTacToe" "" "" "" "" "" 1] set row60 [$diag addRow attribute 0.0] $row60 setLabel "name_type" "CellButtons: TButton" $row60 setProp "attrib_mod" "Other" $row60 setProp "attrib_othermod" "array \[1..9\] of TButton" $row60 setScope "name_type" "cl" "scopePhase" $row60 setProp "is_declaration" "1" "name_type" "cl" $row60 setProp "libunit" "StdCtrls" "name_type" "cl" $row60 setProp "attrib_access" "None-None" "name_type" "de" set row61 [$diag addRow method 0.0] $row61 setLabel "name_type" "\$create\n" $row61 setProp "is_class_feature" "1" $row61 setProp "method_modifier" "Override" set row62 [$diag addRow method 0.0] $row62 setLabel "name_type" "disableBoard()\n" $row62 setProp "has_parmlist" "1" $row62 setProp "freeText" "Disables all the buttons of the board." "name_type" "pe" set row63 [$diag addRow method 0.0] $row63 setLabel "name_type" "enableBoard()\n" $row63 setProp "has_parmlist" "1" $row63 setProp "freeText" "Enables all the buttons of the board." "name_type" "pe" set row64 [$diag addRow method 0.0] $row64 setLabel "name_type" "clearBoard()\n\n" $row64 setProp "has_parmlist" "1" $row64 setProp "freeText" "Clears the contents of all the buttons of the board." "name_type" "pe" set row65 [$diag addRow method 0.0] $row65 setLabel "name_type" "displayResult()\n\n" $row65 setProp "has_parmlist" "1" $row65 setProp "freeText" "Displays the specified result." "name_type" "pe" set cell66 [$row65 addCell parameter 0.0] $cell66 setLabel "name_type" "text: String" $cell66 setScope "name_type" "cl" "scopePhase" $cell66 setScope "name_type" "de" "scopeFile" set row67 [$diag addRow method 0.0] $row67 setLabel "name_type" "cellButtonClick()" $row67 setProp "has_parmlist" "1" $row67 setProp "freeText" "Checks if cell is empty and sets it." "name_type" "pe" set cell68 [$row67 addCell parameter 0.0] $cell68 setLabel "name_type" "index: Integer" $cell68 setScope "name_type" "cl" "scopePhase" $cell68 setScope "name_type" "de" "scopeFile" $diag save # Generator: et.tcl /main/titanic/9 # Argument(s): -e -dphase -a/user/resc/TicSystem.tcl # Interpreter to use: Otsh V7.1.1/F5 # OTShRegister::importTool set diag [CAD new TicTacToe_Menu "TicTacToe" "" "" "" "" "" 1] set node71 [$diag addNode cad_class 1392.0 1200.0 174.0 135.5] $node71 setLabel "name" "TicTacToe_Opponent" $node71 setScope "name" "cl" "scopePhase" set node72 [$diag addNode cad_class 1056.0 1200.0 214.0 135.5] $node72 setLabel "name" "TicTacToe_OpponentMenu" $node72 setScope "name" "cl" "scopePhase" $node72 setProp "freeText" "Pull-down menu to select an opponent." "name" "cl" set node73 [$diag addNode cad_class 1280.0 1072.0 120.0 33.0] $node73 setLabel "name" "TMenuItem" $node73 setProp "is_folded" "1" $node73 setScope "name" "cl" "scopePhase" $node73 setProp "is_declaration" "1" "name" "cl" $node73 setProp "libunit" "Other" "name" "cl" $node73 setProp "userlib" "Menus" "name" "cl" set node74 [$diag addNode cad_class 1392.0 912.0 134.0 97.0] $node74 setLabel "name" "TicTacToe_New" $node74 setScope "name" "cl" "scopePhase" set node75 [$diag addNode cad_class 1088.0 912.0 184.0 97.0] $node75 setLabel "name" "TicTacToe_GameMenu" $node75 setScope "name" "cl" "scopePhase" $node75 setProp "freeText" "Pull down menu to select a new game." "name" "cl" set node77 [$diag addNode cad_class 1248.0 800.0 120.0 33.0] $node77 setLabel "name" "TMenuItem" $node77 setProp "is_folded" "1" $node77 setScope "name" "cl" "scopePhase" $node77 setProp "is_declaration" "1" "name" "cl" $node77 setProp "libunit" "Other" "name" "cl" $node77 setProp "userlib" "Menus" "name" "cl" set node78 [$diag addNode cad_class 432.0 912.0 177.0 97.0] $node78 setLabel "name" "TicTacToe_MainMenu" $node78 setScope "name" "cl" "scopePhase" $node78 setProp "freeText" "Tic Tac Toe Main menu" "name" "cl" set node79 [$diag addNode cad_class 448.0 768.0 120.0 33.0] $node79 setLabel "name" "TMainMenu" $node79 setProp "is_folded" "1" $node79 setScope "name" "cl" "scopePhase" $node79 setProp "is_declaration" "1" "name" "cl" $node79 setProp "libunit" "Other" "name" "cl" $node79 setProp "userlib" "Menus" "name" "cl" set node80 [$diag addNode cad_class 752.0 976.0 214.0 33.0] $node80 setLabel "name" "TicTacToe_OpponentMenu" $node80 setProp "is_folded" "1" $node80 setScope "name" "cl" "scopePhase" $node80 setProp "freeText" "Pull-down menu to select an opponent." "name" "cl" set node81 [$diag addNode cad_class 752.0 912.0 184.0 33.0] $node81 setLabel "name" "TicTacToe_GameMenu" $node81 setProp "is_folded" "1" $node81 setScope "name" "cl" "scopePhase" $node81 setProp "freeText" "Pull down menu to select a new game." "name" "cl" set node69 [$diag addRake generalization $node77 $node74 1312.0 832.0 1472.0 944.0 880.0] set conn94 [$node69 getInConn] set segm95 [$conn94 getFirstSegm] set conn96 [$node69 getFirstOutConn] set segm97 [$conn96 getFirstSegm] set conn98 [$diag addConn generalization_conn $node69 $node75 1152.0 880.5 1152.0 928.0] set segm99 [$conn98 getFirstSegm] set node70 [$diag addRake generalization $node79 $node78 512.0 784.0 512.0 928.0 847.5] set conn100 [$node70 getInConn] set segm101 [$conn100 getFirstSegm] set conn102 [$node70 getFirstOutConn] set segm103 [$conn102 getFirstSegm] set node76 [$diag addRake generalization $node73 $node71 1344.0 1104.0 1488.0 1232.0 1135.5] set conn104 [$node76 getInConn] set segm105 [$conn104 getFirstSegm] set conn106 [$node76 getFirstOutConn] set segm107 [$conn106 getFirstSegm] set conn108 [$diag addConn generalization_conn $node76 $node72 1168.0 1136.0 1168.0 1216.0] set segm109 [$conn108 getFirstSegm] set conn82 [$diag addConn aggregation $node72 $node71 1257.0 1200.0 1408.0 1200.0] $conn82 setLabel "role_end" "Human" $conn82 setProp "mult_kind_end" "one" $conn82 setProp "mult_kind_start" "optional" set segm83 [$conn82 getFirstSegm] set conn84 [$diag addConn aggregation $node75 $node74 1200.0 960.0 1408.0 960.0] $conn84 setLabel "role_end" "New" $conn84 setProp "mult_kind_end" "one" $conn84 setProp "mult_kind_start" "optional" set segm85 [$conn84 getFirstSegm] set conn86 [$diag addConn aggregation $node78 $node81 597.0 928.0 768.0 928.0] $conn86 setLabel "role_end" "GameMenu" $conn86 setProp "mult_kind_end" "one" $conn86 setProp "mult_kind_start" "optional" set segm87 [$conn86 getFirstSegm] set conn88 [$diag addConn aggregation $node72 $node71 1257.0 1328.0 1408.0 1328.0] $conn88 setLabel "role_end" "ComputerO" $conn88 setProp "mult_kind_end" "one" $conn88 setProp "mult_kind_start" "optional" set segm89 [$conn88 getFirstSegm] set conn90 [$diag addConn aggregation $node72 $node71 1257.0 1264.0 1408.0 1264.0] $conn90 setLabel "role_end" "ComputerX" $conn90 setProp "mult_kind_end" "one" $conn90 setProp "mult_kind_start" "optional" set segm91 [$conn90 getFirstSegm] set conn92 [$diag addConn aggregation $node78 $node80 597.0 992.0 768.0 992.0] $conn92 setLabel "role_end" "OpponentMenu" $conn92 setProp "mult_kind_end" "one" $conn92 setProp "mult_kind_start" "optional" set segm93 [$conn92 getFirstSegm] $diag save # Generator: et.tcl /main/titanic/9 # Argument(s): -e -dphase -a/user/resc/TicSystem.tcl # Interpreter to use: Otsh V7.1.1/F5 # OTShRegister::importTool set diag [CAD new TicTacToe_Core "TicTacToe" "" "" "" "" "" 1] set node110 [$diag addNode cad_class 1072.0 784.0 239.0 127.0] $node110 setLabel "name" "TicTacToe_Computer" $node110 setScope "name" "cl" "scopePhase" $node110 setProp "freeText" "The computer opponent." "name" "cl" set node111 [$diag addNode cad_class 672.0 784.0 252.0 262.0] $node111 setLabel "name" "TicTacToe_Game" $node111 setScope "name" "cl" "scopePhase" $node111 setProp "freeText" "The Tic Tac Toe game itself." "name" "cl" set node112 [$diag addNode cad_class 256.0 784.0 268.0 112.0] $node112 setLabel "name" "TicTacToe_Cell" $node112 setScope "name" "cl" "scopePhase" $node112 setProp "freeText" "Cell of the board." "name" "cl" set node113 [$diag addNode cad_class 928.0 624.0 140.0 33.0] $node113 setLabel "name" "TTicTacToe_GUI" $node113 setProp "is_folded" "1" $node113 setScope "name" "cl" "scopePhase" $node113 setProp "freeText" "Graphical User Interface of the game." "name" "cl" $node113 setProp "is_mainform" "1" "name" "cl" set conn114 [$diag addConn qualif_assoc $node111 $node112 672.0 848.0 480.0 848.0] $conn114 setLabel "qualifier" "Index" $conn114 setLabel "role_end" "board" $conn114 setProp "mult_kind_end" "one" $conn114 setProp "mult_kind_start" "optional" $conn114 setScope "qualifier" "de" "scopeFile" $conn114 setProp "data_type" "Integer" "qualifier" "de" $conn114 setProp "assoc_implement" "Object reference" "role_end" "de" set segm115 [$conn114 getFirstSegm] set conn116 [$diag addConn qualif_assoc $node112 $node112 256.0 880.0 272.0 800.0] $conn116 setLabel "qualifier" "Direction" $conn116 setLabel "role_end" "neighbour" $conn116 setProp "mult_kind_end" "one" $conn116 setProp "mult_kind_start" "optional" $conn116 setScope "qualifier" "de" "scopeFile" $conn116 setProp "data_type" "String" "qualifier" "de" $conn116 setProp "assoc_implement" "Object reference" "role_end" "de" set segm117 [$conn116 getFirstSegm] set segm118 [$conn116 addSegm 128.0 880.0] set segm119 [$conn116 addSegm 128.0 800.0] set conn120 [$diag addConn association $node111 $node110 800.0 848.0 1088.0 848.0] $conn120 setLabel "role_start" "game" $conn120 setProp "mult_kind_end" "optional" $conn120 setProp "mult_kind_start" "one" $conn120 setProp "assoc_implement" "Object reference" "role_start" "de" set segm121 [$conn120 getFirstSegm] set conn122 [$diag addConn association $node113 $node110 1054.0 640.0 1184.0 832.0] $conn122 setLabel "role_end" "computer" $conn122 setLabel "role_start" "gui" $conn122 setProp "mult_kind_end" "optional" $conn122 setProp "mult_kind_start" "optional" $conn122 setProp "assoc_implement" "Object reference" "role_end" "de" set segm123 [$conn122 getFirstSegm] set segm124 [$conn122 addSegm 1184.0 640.0] set conn125 [$diag addConn association $node113 $node111 928.0 640.0 800.0 800.0] $conn125 setLabel "role_end" "game" $conn125 setLabel "role_start" "gui" $conn125 setProp "mult_kind_end" "optional" $conn125 setProp "mult_kind_start" "optional" $conn125 setProp "assoc_implement" "Object reference" "role_end" "de" set segm126 [$conn125 getFirstSegm] set segm127 [$conn125 addSegm 800.0 640.0] $diag save # Generator: et.tcl /main/titanic/9 # Argument(s): -e -dphase -a/user/resc/TicSystem.tcl # Interpreter to use: Otsh V7.1.1/F5 # OTShRegister::importTool set diag [CDM new TicTacToe_New "TicTacToe" "" "" "" "" "" 1] set row128 [$diag addRow method 0.0] $row128 setLabel "name_type" "Click()" $row128 setProp "has_parmlist" "1" $row128 setProp "is_event" "1" $row128 setProp "freeText" "Starts new game." "name_type" "pe" $diag save # Generator: et.tcl /main/titanic/9 # Argument(s): -e -dphase -a/user/resc/TicSystem.tcl # Interpreter to use: Otsh V7.1.1/F5 # OTShRegister::importTool set diag [CDM new TicTacToe_CellButton "TicTacToe" "" "" "" "" "" 1] set row129 [$diag addRow method 0.0] $row129 setLabel "name_type" "Click()" $row129 setProp "has_parmlist" "1" $row129 setProp "is_event" "1" $diag save # Generator: et.tcl /main/titanic/9 # Argument(s): -e -dphase -a/user/resc/TicSystem.tcl # Interpreter to use: Otsh V7.1.1/F5 # OTShRegister::importTool set diag [CDM new TicTacToe_Opponent "TicTacToe" "" "" "" "" "" 1] set row130 [$diag addRow method 0.0] $row130 setLabel "name_type" "Click()" $row130 setProp "has_parmlist" "1" $row130 setProp "is_event" "1" $row130 setProp "freeText" "Sets opponent." "name_type" "pe" $diag save # Generator: et.tcl /main/titanic/9 # Argument(s): -e -dphase -a/user/resc/TicSystem.tcl # Interpreter to use: Otsh V7.1.1/F5 # OTShRegister::importTool set diag [CDM new TicTacToe_Computer "TicTacToe" "" "" "" "" "" 1] set row131 [$diag addRow attribute 0.0] $row131 setLabel "name_type" "id: String = ''" $row131 setProp "initial_value" "''" $row131 setScope "name_type" "cl" "scopePhase" set row132 [$diag addRow method 0.0] $row132 setLabel "name_type" "checkTurn()\n" $row132 setProp "has_parmlist" "1" $row132 setProp "freeText" "Checks if it's its turn." "name_type" "pe" set row133 [$diag addRow method 0.0] $row133 setLabel "name_type" "selectCell()\n" $row133 setProp "has_parmlist" "1" $row133 setProp "freeText" "Chooses a good empty cell." "name_type" "pe" set row134 [$diag addRow method 0.0] $row134 setLabel "name_type" "getMaxValue(): Integer" $row134 setProp "has_parmlist" "1" $row134 setProp "freeText" "Determines the strategic value of the specified empty cell." "name_type" "pe" $row134 setScope "name_type" "cl" "scopePhase" set cell135 [$row134 addCell parameter 0.0] $cell135 setLabel "name_type" "x: Integer" $cell135 setScope "name_type" "cl" "scopePhase" $cell135 setScope "name_type" "de" "scopeFile" $diag save # Generator: et.tcl /main/titanic/9 # Argument(s): -e -dphase -a/user/resc/TicSystem.tcl # Interpreter to use: Otsh V7.1.1/F5 # OTShRegister::importTool set diag [CDM new TicTacToe_Game "TicTacToe" "" "" "" "" "" 1] set row136 [$diag addRow attribute 0.0] $row136 setLabel "name_type" "turnNumber: Integer\n" $row136 setScope "name_type" "cl" "scopePhase" set row137 [$diag addRow attribute 0.0] $row137 setLabel "name_type" "players: String = 'XO'\n" $row137 setProp "initial_value" "'XO'" $row137 setScope "name_type" "cl" "scopePhase" set row138 [$diag addRow attribute 0.0] $row138 setLabel "name_type" "drawText: String = 'It''s a draw!!!'\n" $row138 setProp "initial_value" "'It''s a draw!!!'" $row138 setScope "name_type" "cl" "scopePhase" set row139 [$diag addRow attribute 0.0] $row139 setLabel "name_type" "winText: String = ' is the winner!!!'" $row139 setProp "initial_value" "' is the winner!!!'" $row139 setScope "name_type" "cl" "scopePhase" set row140 [$diag addRow method 0.0] $row140 setLabel "name_type" "createCells()\n" $row140 setProp "has_parmlist" "1" $row140 setProp "freeText" "Creates all the cells of the board.\n" "name_type" "pe" set row141 [$diag addRow method 0.0] $row141 setLabel "name_type" "connectCells()\n\n" $row141 setProp "has_parmlist" "1" $row141 setProp "freeText" "Connects all the cells of the board." "name_type" "pe" set row142 [$diag addRow method 0.0] $row142 setLabel "name_type" "startGame()\n" $row142 setProp "has_parmlist" "1" $row142 setProp "freeText" "Initialize everything for a new game." "name_type" "pe" set row143 [$diag addRow method 0.0] $row143 setLabel "name_type" "clearBoard()\n\n" $row143 setProp "has_parmlist" "1" $row143 setProp "freeText" "Clears all the cells of the board." "name_type" "pe" set row144 [$diag addRow method 0.0] $row144 setLabel "name_type" "checkResult()\n" $row144 setProp "has_parmlist" "1" $row144 setProp "freeText" "Checks if there is a winner or a draw\nand displays this result." "name_type" "pe" set cell145 [$row144 addCell parameter 0.0] $cell145 setLabel "name_type" "number: Integer" $cell145 setScope "name_type" "cl" "scopePhase" $cell145 setScope "name_type" "de" "scopeFile" set row146 [$diag addRow method 0.0] $row146 setLabel "name_type" "selectCell()\n" $row146 setProp "has_parmlist" "1" $row146 setProp "freeText" "Marks the selected cell and checks to\nsee if there is a result." "name_type" "pe" set cell147 [$row146 addCell parameter 0.0] $cell147 setLabel "name_type" "number: Integer" $cell147 setScope "name_type" "cl" "scopePhase" $cell147 setScope "name_type" "de" "scopeFile" set row148 [$diag addRow method 0.0] $row148 setLabel "name_type" "getActivePlayer(): String" $row148 setProp "has_parmlist" "1" $row148 setProp "freeText" "Determines the active player." "name_type" "pe" $row148 setScope "name_type" "cl" "scopePhase" $diag save