A B C D E F G H I K M N O P R S T U V

A

a - Static variable in class us.the.mac.board.R.drawable
 
action_decrease - Static variable in class us.the.mac.board.R.id
 
action_decrease - Static variable in class us.the.mac.board.R.string
 
action_increase - Static variable in class us.the.mac.board.R.id
 
action_increase - Static variable in class us.the.mac.board.R.string
 
action_settings - Static variable in class us.the.mac.board.R.id
 
action_settings - Static variable in class us.the.mac.board.R.string
 
activity_horizontal_margin - Static variable in class us.the.mac.board.R.dimen
Default screen margins, per the Android Design guidelines.
activity_vertical_margin - Static variable in class us.the.mac.board.R.dimen
 
addPiece(Board.Piece) - Method in class us.the.mac.board.Board.Piece
 
app_name - Static variable in class us.the.mac.board.R.string
 
AppBaseTheme - Static variable in class us.the.mac.board.R.style
Base application theme, dependent on API level.
AppTheme - Static variable in class us.the.mac.board.R.style
Application theme.

B

b - Static variable in class us.the.mac.board.R.drawable
 
back - Static variable in class us.the.mac.board.R.drawable
 
Board - Class in us.the.mac.board
The Board class contains all added pieces, internal squares, and handles
the functions that make up the Android User Experience.

It is used as a parent class of other types of boards (Chess, Xiangqi, etc.),
and receives piece logic to provide the game functionality.
Board(Context, AttributeSet) - Constructor for class us.the.mac.board.Board
This constructor is used to access a Board from android xml layout files.

board - Static variable in class us.the.mac.board.R.drawable
 
board - Static variable in class us.the.mac.board.R.id
 
Board - Static variable in class us.the.mac.board.R.styleable
Attributes that can be used with a Board.
Board.Color - Enum in us.the.mac.board
The Color enum contains the color of a piece.

For Example: If a piece is White its value will be, Board.Color.WHITE.
Board.EndGamePiece - Interface in us.the.mac.board
The EndGamePiece interface handles the callback for the type of piece that ends the game.

For Example: In games like Chess or Xiangqi, this interface is implemented by the King pieces.
Board.LayoutParams - Class in us.the.mac.board
 
Board.LayoutParams(Context, AttributeSet) - Constructor for class us.the.mac.board.Board.LayoutParams
Board.LayoutParams(int, int) - Constructor for class us.the.mac.board.Board.LayoutParams
Sets the child width and the child height.
Board.LayoutParams() - Constructor for class us.the.mac.board.Board.LayoutParams
Sets the child width to ViewGroup.LayoutParams and the child height to ViewGroup.LayoutParams.WRAP_CONTENT.
Board.LayoutParams(ViewGroup.LayoutParams) - Constructor for class us.the.mac.board.Board.LayoutParams
Board.LayoutParams(ViewGroup.MarginLayoutParams) - Constructor for class us.the.mac.board.Board.LayoutParams
Board.Piece - Class in us.the.mac.board
This class contains all the general functions of a piece.

It is used as a parent class of other types of pieces (Knight, Pawn, etc.),
and contains all the board data.
Board.Piece(Board.Piece) - Constructor for class us.the.mac.board.Board.Piece
This constructor is used to copy piece data into an existing Piece.

Board.Piece(Context, AttributeSet) - Constructor for class us.the.mac.board.Board.Piece
This constructor is used to create a Piece from android xml layout files.

Board.Square - Class in us.the.mac.board
The Square class contains all needed squares, and handles the piece
that is on it through its moves data to interact with other squares.
Board.Square(Board, Context, AttributeSet, int) - Constructor for class us.the.mac.board.Board.Square
 
board_0 - Static variable in class us.the.mac.board.R.drawable
 
Board_color - Static variable in class us.the.mac.board.R.styleable
This symbol is the offset where the R.attr.color attribute's value can be found in the R.styleable.Board array.
Board_square - Static variable in class us.the.mac.board.R.styleable
This symbol is the offset where the R.attr.square attribute's value can be found in the R.styleable.Board array.
BoardDisplay - Class in us.the.mac.board
 
BoardDisplay() - Constructor for class us.the.mac.board.BoardDisplay
 
BuildConfig - Class in us.the.mac.board
 
BuildConfig() - Constructor for class us.the.mac.board.BuildConfig
 

C

c - Static variable in class us.the.mac.board.R.drawable
 
canMove() - Method in class us.the.mac.board.Board.Square
 
checkLayoutParams(ViewGroup.LayoutParams) - Method in class us.the.mac.board.Board
color - Variable in class us.the.mac.board.Board.Piece
 
color - Static variable in class us.the.mac.board.R.attr
Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
cur_pos - Variable in class us.the.mac.board.Board.Piece
 
currentPieceMovement(Board.Square) - Method in class us.the.mac.board.Board
This method is used to access the current Square selected after selecting a piece.

currentSelection(Board.Square) - Method in class us.the.mac.board.Board
This method is used to access the current Square selected before selecting a piece.


D

d - Static variable in class us.the.mac.board.R.drawable
 
DEBUG - Static variable in class us.the.mac.board.BuildConfig
 
deselectCurrentPiece() - Method in class us.the.mac.board.Board.Piece
 
display - Static variable in class us.the.mac.board.R.menu
 

E

e - Static variable in class us.the.mac.board.R.drawable
 
endingMove() - Method in interface us.the.mac.board.Board.EndGamePiece
This method determines if an ending piece has made its last move.


F

f - Static variable in class us.the.mac.board.R.drawable
 
file() - Method in class us.the.mac.board.Board.Square
 
FILE_A - Variable in class us.the.mac.board.Board.Piece
 
FILE_B - Variable in class us.the.mac.board.Board.Piece
 
FILE_G - Variable in class us.the.mac.board.Board.Piece
 
FILE_H - Variable in class us.the.mac.board.Board.Piece
 
firstColor() - Method in class us.the.mac.board.Board.Piece
This firstColor is used to create an image of this Piece's R.drawable.resources.

fromCurPos(int) - Method in class us.the.mac.board.Board.Piece
This method is used to assign the location of the possible moves for a Piece.


G

g - Static variable in class us.the.mac.board.R.drawable
 
generateDefaultLayoutParams() - Method in class us.the.mac.board.Board
Returns a set of layout parameters with a width of ViewGroup.LayoutParams.MATCH_PARENT, a height of ViewGroup.LayoutParams.WRAP_CONTENT and no spanning.
generateLayoutParams(AttributeSet) - Method in class us.the.mac.board.Board
generateLayoutParams(ViewGroup.LayoutParams) - Method in class us.the.mac.board.Board
getPieceAt(int) - Static method in class us.the.mac.board.Board.Piece
This method accesses the squares container and returns its piece
getSquareAt(int) - Static method in class us.the.mac.board.Board
This method accesses the squares container
getVisibility() - Method in class us.the.mac.board.Board.Square
 
GREY - Static variable in class us.the.mac.board.Board.Square
 

H

h - Static variable in class us.the.mac.board.R.drawable
 
hasPiece() - Method in class us.the.mac.board.Board.Square
 
hasSelectedPiece() - Static method in class us.the.mac.board.Board.Piece
 
hello_world - Static variable in class us.the.mac.board.R.string
 

I

Instance() - Static method in class us.the.mac.board.Board
 
INVALID_MOVE - Static variable in class us.the.mac.board.Board.Piece
The constant that disallows a piece to move.

It can be used in conjunction with the move_# variables
invalidateSquares() - Method in class us.the.mac.board.Board.Piece
 
isLegal(Board.Square) - Method in class us.the.mac.board.Board.Piece
 
isOpponent(Board.Color) - Method in class us.the.mac.board.Board.Piece
This method depicts whether the passed color is the opponent's
isPossible() - Method in class us.the.mac.board.Board.Square
 
isRed(boolean) - Method in class us.the.mac.board.Board.Square
 
isRed() - Method in class us.the.mac.board.Board.Square
 

K

k_ - Static variable in class us.the.mac.board.R.drawable
 
k__ - Static variable in class us.the.mac.board.R.drawable
 

M

move_1 - Variable in class us.the.mac.board.Board.Piece
 
move_2 - Variable in class us.the.mac.board.Board.Piece
 
move_3 - Variable in class us.the.mac.board.Board.Piece
 
move_4 - Variable in class us.the.mac.board.Board.Piece
 
move_5 - Variable in class us.the.mac.board.Board.Piece
 
move_6 - Variable in class us.the.mac.board.Board.Piece
 
move_7 - Variable in class us.the.mac.board.Board.Piece
 
move_8 - Variable in class us.the.mac.board.Board.Piece
 
MOVE_DOWN - Static variable in class us.the.mac.board.Board.Piece
The constant that allows a piece to move down.

It can be used in conjunction with other MOVE constants
MOVE_DOWN_LEFT - Static variable in class us.the.mac.board.Board.Piece
The constant that allows a piece to move down and to the left.

It can be used in conjunction with other MOVE constants
MOVE_DOWN_RIGHT - Static variable in class us.the.mac.board.Board.Piece
The constant that allows a piece to move down and to the right.

It can be used in conjunction with other MOVE constants
MOVE_LEFT - Static variable in class us.the.mac.board.Board.Piece
The constant that allows a piece to move to the left.

It can be used in conjunction with other MOVE constants
MOVE_RIGHT - Static variable in class us.the.mac.board.Board.Piece
The constant that allows a piece to move to the right.

It can be used in conjunction with other MOVE constants
MOVE_UP - Static variable in class us.the.mac.board.Board.Piece
The constant that allows a piece to move up.

It can be used in conjunction with other MOVE constants
MOVE_UP_LEFT - Static variable in class us.the.mac.board.Board.Piece
The constant that allows a piece to move up and to the left.

It can be used in conjunction with other MOVE constants
MOVE_UP_RIGHT - Static variable in class us.the.mac.board.Board.Piece
The constant that allows a piece to move up and to the right.

It can be used in conjunction with other MOVE constants
moveTo(int) - Method in class us.the.mac.board.Board.Piece
This sets up a move position for the piece

N

n_ - Static variable in class us.the.mac.board.R.drawable
 
n__ - Static variable in class us.the.mac.board.R.drawable
 

O

onClick(View) - Method in class us.the.mac.board.Board
 
onCreate(Bundle) - Method in class us.the.mac.board.BoardDisplay
 
onLayout(boolean, int, int, int, int) - Method in class us.the.mac.board.Board
Accepts and lays out all child views e.g.
onResume() - Method in class us.the.mac.board.BoardDisplay
 

P

piece - Variable in class us.the.mac.board.Board.Square
 
pos() - Method in class us.the.mac.board.Board.Square
 
promoteTo(Board.Piece) - Method in class us.the.mac.board.Board.Piece
This method accepts the new piece to promote to

R

R - Class in us.the.mac.board
 
R() - Constructor for class us.the.mac.board.R
 
R.attr - Class in us.the.mac.board
 
R.attr() - Constructor for class us.the.mac.board.R.attr
 
R.dimen - Class in us.the.mac.board
 
R.dimen() - Constructor for class us.the.mac.board.R.dimen
 
R.drawable - Class in us.the.mac.board
 
R.drawable() - Constructor for class us.the.mac.board.R.drawable
 
R.id - Class in us.the.mac.board
 
R.id() - Constructor for class us.the.mac.board.R.id
 
R.menu - Class in us.the.mac.board
 
R.menu() - Constructor for class us.the.mac.board.R.menu
 
R.string - Class in us.the.mac.board
 
R.string() - Constructor for class us.the.mac.board.R.string
 
R.style - Class in us.the.mac.board
 
R.style() - Constructor for class us.the.mac.board.R.style
 
R.styleable - Class in us.the.mac.board
 
R.styleable() - Constructor for class us.the.mac.board.R.styleable
 
ra - Static variable in class us.the.mac.board.R.drawable
 
rank() - Method in class us.the.mac.board.Board.Square
 
rb - Static variable in class us.the.mac.board.R.drawable
 
rc - Static variable in class us.the.mac.board.R.drawable
 
rd - Static variable in class us.the.mac.board.R.drawable
 
re - Static variable in class us.the.mac.board.R.drawable
 
RED - Static variable in class us.the.mac.board.Board.Square
 
remove() - Method in class us.the.mac.board.Board.Square
 
resetBoardOrder() - Method in class us.the.mac.board.Board
Resets the z order of all the pieces on the board by looping through each square and by using the method bringPieceToFront, which is an altered version of bringToFront().

The method will bring the piece to the front by changing the z order

REFERENCED FROM: http://developer.android.com/reference/android/view/View.html#bringToFront()
resetFile() - Method in class us.the.mac.board.Board
Resets the z order of all the pieces on the board by looping through each square and by using the method bringPieceToFront, which is an altered version of bringToFront().

The method will bring the piece to the front by changing the z order

REFERENCED FROM: http://developer.android.com/reference/android/view/View.html#bringToFront()
resetPossibleMove(int) - Method in class us.the.mac.board.Board.Piece
This resets the move at the passed position to no longer be displayed
resetPossibleMoves() - Method in class us.the.mac.board.Board.Piece
 
rf - Static variable in class us.the.mac.board.R.drawable
 
rg - Static variable in class us.the.mac.board.R.drawable
 
rh - Static variable in class us.the.mac.board.R.drawable
 

S

secondColor() - Method in class us.the.mac.board.Board.Piece
This secondColor is used to create an image of this Piece's R.drawable.resources.

selectedPiece() - Static method in class us.the.mac.board.Board.Piece
 
selectPiece() - Method in class us.the.mac.board.Board.Piece
 
sendToBack() - Method in class us.the.mac.board.Board.Piece
 
setBaseAttributes(TypedArray, int, int) - Method in class us.the.mac.board.Board.LayoutParams
 
setLastMove(boolean) - Method in class us.the.mac.board.BoardDisplay
 
setPossible(boolean) - Method in class us.the.mac.board.Board.Square
 
setUpLegalSquare(int) - Method in class us.the.mac.board.Board.Piece
This sets up a move position as a legal square to be displayed
setUpLegalSquares() - Method in class us.the.mac.board.Board.Piece
This sets up a move position as a legal square to be displayed
setUpMoves() - Method in class us.the.mac.board.Board.Piece
This is called each time a piece moves, and should use the MOVE constants (MOVE_UP, etc.).
setVisibility(int) - Method in class us.the.mac.board.Board.Square
 
showMoves() - Method in class us.the.mac.board.Board.Piece
 
square - Static variable in class us.the.mac.board.R.attr
Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.

T

toString() - Method in class us.the.mac.board.Board.Piece
 
toString() - Method in class us.the.mac.board.Board.Square
 
turnOff() - Method in class us.the.mac.board.Board.Square
 
turnOn(int) - Method in class us.the.mac.board.Board.Square
 

U

us.the.mac.board - package us.the.mac.board
 

V

valueOf(String) - Static method in enum us.the.mac.board.Board.Color
Returns the enum constant of this type with the specified name.
values() - Static method in enum us.the.mac.board.Board.Color
Returns an array containing the constants of this enum type, in the order they are declared.

A B C D E F G H I K M N O P R S T U V