SAP ABAP Class CL_WDR_OTHELLO (Help Class for Othello Example)
Hierarchy
SAP_UI (Software Component) User Interface Technology
   BC-WD-ABA (Application Component) Web Dynpro ABAP
     SWDP_DEMO (Package) Demo Applications
Meta Relationship - Using
# Relationship type Using Short Description Created on
1 Inheritance (c INHERITING FROM c_ref)  CL_WD_COMPONENT_ASSISTANCE Basis for a Web Dynpro assistance class 20060816
Properties
Class CL_WDR_OTHELLO  
Short Description Help Class for Othello Example    
Super Class CL_WD_COMPONENT_ASSISTANCE Basis for a Web Dynpro assistance class 
Instantiability of a Class 2  Public 
Final    
General Data
Message Class    
Program status     
Category 0   
Package SWDP_DEMO   Demo Applications 
Created 20040721   SAP 
Last change 20090618   SAP 
Shared Memory-enabled    
Fixed point arithmetic    
Unicode checks active    
Forward declarations
# Type group / Object type Type Type Description
1 ABAP Type group use (TYPE-POOLS tp)  Type group use (TYPE-POOLS tp)
Interfaces
Class CL_WDR_OTHELLO has no interface implemented.
Friends
Class CL_WDR_OTHELLO has no friend class.
Attributes
# Attribute Level Visibility Read only Typing Associated Type Initial Value Description Created on
1 MC_PLAYER_RED Constant Public Type reference (TYPE) I 1 ID of White Player 20040721
2 MC_PLAYER_WHITE Constant Public Type reference (TYPE) I 2 ID of Red Player 20040721
3 MC_TEXT_001 Constant Public Type reference (TYPE) WDR_TEXT_KEY '001' Web Dynpro: Text Key 20060816
4 MC_TEXT_002 Constant Public Type reference (TYPE) WDR_TEXT_KEY '002' Web Dynpro: Text Key 20060816
5 MC_TEXT_003 Constant Public Type reference (TYPE) WDR_TEXT_KEY '003' Web Dynpro: Text Key 20060816
6 MC_TEXT_004 Constant Public Type reference (TYPE) WDR_TEXT_KEY '004' Web Dynpro: Text Key 20060816
7 MC_TOKEN_EMPTY Constant Public Type reference (TYPE) I 0 Empty Space 20040721
8 MC_TOKEN_RED Constant Public Type reference (TYPE) I 1 Occupied by red 20040721
9 MC_TOKEN_WHITE Constant Public Type reference (TYPE) I 2 Occupied by red 20040721
10 MT_BOARD Instance attribute Public Type reference (TYPE) T_BOARD Board 20040722
11 M_BOARD_SIZE Instance attribute Public Type reference (TYPE) I Size of Board 20040721
12 M_NUM_AI_LOOK_AHEAD_TURNS Instance attribute Public Type reference (TYPE) I Number of moves the computer player can see ahead 20040723
13 M_NUM_RED_TOKEN Instance attribute Public Type reference (TYPE) I Current Number of Red Counters 20040721
14 M_NUM_WHITE_TOKEN Instance attribute Public Type reference (TYPE) I Current Number of White Counters 20040721
Methods
# Method Level Visibility Method type Description Created on
1 CALC_NUM_TOKEN Instance method Protected Method 20040721
2 EXECUTE_MOVE Instance method Protected Method 20040722
3 EXECUTE_MOVE_BY_DIRECTION Instance method Protected Method 20040721
4 FIND_TOKEN Instance method Protected Method 20040721
5 GET_POSSIBLE_MOVES Instance method Protected Method 20040722
6 GET_TEXT Instance method Public Method 20060816
7 GET_TOKEN Instance method Public Method 20040721
8 INIT Instance method Public Method 20040721
9 IS_END_OF_GAME Instance method Public Method 20040722
10 MAKE_AI_MOVE Instance method Public Method 20040723
11 PLACE_TOKEN Instance method Public Method 20040721
12 SET_TOKEN Instance method Protected Method 20040721
Events
Class CL_WDR_OTHELLO has no event.
Types
# Type Visibility Typing Associated Type Description Created on Type Source
1 TT_ROW_COLUMN Public See coding 20040722 TT_ROW_COLUMN type standard table of t_row_column
2 T_BOARD Public See coding 20040722 T_BOARD type standard table of i
3 T_ROW_COLUMN Public See coding 20040722 begin of T_ROW_COLUMN, row type i, column type i, end of t_row_column
Method Signatures

Method CALC_NUM_TOKEN Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IT_BOARD Value transfer Type reference (TYPE) T_BOARD 20040723
2 Importing I_TOKEN Value transfer Type reference (TYPE) I 20040721
3 Returning R_NUM_TOKEN Value transfer Type reference (TYPE) I 20040721

Method CALC_NUM_TOKEN on class CL_WDR_OTHELLO has no exception.

Method EXECUTE_MOVE Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Changing CT_BOARD Value transfer Type reference (TYPE) T_BOARD 20040722
2 Exporting E_IS_LEGAL_MOVE Value transfer Type reference (TYPE) ABAP_BOOL 20040722
3 Exporting E_NUM_RED_TOKEN Value transfer Type reference (TYPE) I 20040723
4 Exporting E_NUM_WHITE_TOKEN Value transfer Type reference (TYPE) I 20040723
5 Importing I_COLUMN Value transfer Type reference (TYPE) I 20040722
6 Importing I_IS_TEST_MODE Value transfer Type reference (TYPE) ABAP_BOOL 20040722
7 Importing I_ROW Value transfer Type reference (TYPE) I 20040722
8 Importing I_TOKEN_CUR_PLAYER Value transfer Type reference (TYPE) I 20040722
9 Importing I_TOKEN_OTHER_PLAYER Value transfer Type reference (TYPE) I 20040722

Method EXECUTE_MOVE on class CL_WDR_OTHELLO has no exception.

Method EXECUTE_MOVE_BY_DIRECTION Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Changing CT_BOARD Value transfer Type reference (TYPE) T_BOARD 20040722
2 Exporting E_IS_LEGAL_DIRECTION Value transfer Type reference (TYPE) ABAP_BOOL 20040722
3 Importing I_COLUMN Value transfer Type reference (TYPE) I 20040721
4 Importing I_COLUMN_INCREMENT Value transfer Type reference (TYPE) I 20040721
5 Importing I_IS_TEST_MODE Value transfer Type reference (TYPE) ABAP_BOOL 20040722
6 Importing I_ROW Value transfer Type reference (TYPE) I 20040721
7 Importing I_ROW_INCREMENT Value transfer Type reference (TYPE) I 20040721
8 Importing I_TOKEN_CUR_PLAYER Value transfer Type reference (TYPE) I 20040721
9 Importing I_TOKEN_OTHER_PLAYER Value transfer Type reference (TYPE) I 20040721

Method EXECUTE_MOVE_BY_DIRECTION on class CL_WDR_OTHELLO has no exception.

Method FIND_TOKEN Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Changing CT_BOARD Value transfer Type reference (TYPE) T_BOARD 20040722
2 Exporting E_TOKEN_FOUND Value transfer Type reference (TYPE) ABAP_BOOL 20040722
3 Importing I_COLUMN Value transfer Type reference (TYPE) I 20040721
4 Importing I_COLUMN_INCREMENT Value transfer Type reference (TYPE) I 20040721
5 Importing I_REPLACE Value transfer Type reference (TYPE) ABAP_BOOL 20040721
6 Importing I_ROW Value transfer Type reference (TYPE) I 20040721
7 Importing I_ROW_INCREMENT Value transfer Type reference (TYPE) I 20040721
8 Importing I_TOKEN Value transfer Type reference (TYPE) I 20040721

Method FIND_TOKEN on class CL_WDR_OTHELLO has no exception.

Method GET_POSSIBLE_MOVES Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Changing CT_BOARD Value transfer Type reference (TYPE) T_BOARD 20040722
2 Exporting ET_POSSIBLE_MOVES Value transfer Type reference (TYPE) TT_ROW_COLUMN 20040722
3 Importing I_TOKEN_CUR_PLAYER Value transfer Type reference (TYPE) I 20040722
4 Importing I_TOKEN_OTHER_PLAYER Value transfer Type reference (TYPE) I 20040722

Method GET_POSSIBLE_MOVES on class CL_WDR_OTHELLO has no exception.

Method GET_TEXT Signature

Method GET_TEXT on class CL_WDR_OTHELLO has no parameter.
Method GET_TEXT on class CL_WDR_OTHELLO has no exception.

Method GET_TOKEN Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IT_BOARD Value transfer Type reference (TYPE) T_BOARD 20040722
2 Importing I_COLUMN Value transfer Type reference (TYPE) I 20040721
3 Importing I_ROW Value transfer Type reference (TYPE) I 20040721
4 Returning R_TOKEN Value transfer Type reference (TYPE) I 20040721

Method GET_TOKEN on class CL_WDR_OTHELLO has no exception.

Method INIT Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing I_BOARD_SIZE Value transfer Type reference (TYPE) I 20040721
2 Importing I_NUM_AI_LOOK_AHEAD_TURNS Value transfer Type reference (TYPE) I 20040723

Method INIT on class CL_WDR_OTHELLO has no exception.

Method IS_END_OF_GAME Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing I_CUR_PLAYER Value transfer Type reference (TYPE) I 20040722
2 Returning R_IS_END_OF_GAME Value transfer Type reference (TYPE) ABAP_BOOL 20040722

Method IS_END_OF_GAME on class CL_WDR_OTHELLO has no exception.

Method MAKE_AI_MOVE Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing I_CUR_PLAYER Value transfer Type reference (TYPE) I 20040723

Method MAKE_AI_MOVE on class CL_WDR_OTHELLO has no exception.

Method PLACE_TOKEN Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing I_COLUMN Value transfer Type reference (TYPE) I 20040721
2 Importing I_CUR_PLAYER Value transfer Type reference (TYPE) I 20040721
3 Importing I_ROW Value transfer Type reference (TYPE) I 20040721
4 Returning R_IS_LEGAL_MOVE Value transfer Type reference (TYPE) ABAP_BOOL 20040721

Method PLACE_TOKEN on class CL_WDR_OTHELLO has no exception.

Method SET_TOKEN Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Changing CT_BOARD Value transfer Type reference (TYPE) T_BOARD 20040722
2 Importing I_COLUMN Value transfer Type reference (TYPE) I 20040721
3 Importing I_ROW Value transfer Type reference (TYPE) I 20040721
4 Importing I_TOKEN Value transfer Type reference (TYPE) I 20040721

Method SET_TOKEN on class CL_WDR_OTHELLO has no exception.
History
Last changed by/on SAP  20090618 
SAP Release Created in 700