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

A

AboutDlg - Class in cz.nipax.hippo.pexeso
The About dialog.
AboutDlg() - Constructor for class cz.nipax.hippo.pexeso.AboutDlg
Simple constructor.
actionPerformed(ActionEvent) - Method in class cz.nipax.hippo.pexeso.MainDlg
Callbacks for menu.
actual - Variable in class cz.nipax.hippo.pexeso.Playground
Currently playing player - 0 or 1.
add_AI(AI, AI) - Method in class cz.nipax.hippo.pexeso.Playground
Plugs AIs into game.
AI - Class in cz.nipax.hippo.pexeso
The basic class for all other AI classes.
AI(Playground) - Constructor for class cz.nipax.hippo.pexeso.AI
Simple constructior that only sets AI.m_pg.
ai - Variable in class cz.nipax.hippo.pexeso.Playground.Player
AI of player
AI_enhanced - Class in cz.nipax.hippo.pexeso
Implementation of "classic" inteligence.
AI_enhanced(Playground) - Constructor for class cz.nipax.hippo.pexeso.AI_enhanced
 
AI_forgetting - Class in cz.nipax.hippo.pexeso
Implementation of forgetting inteligence.
AI_forgetting(Playground) - Constructor for class cz.nipax.hippo.pexeso.AI_forgetting
Simple constructor for variables init.
AI_forgetting.Piece - Class in cz.nipax.hippo.pexeso
Store informations about one position in playground.
AI_forgetting.Piece() - Constructor for class cz.nipax.hippo.pexeso.AI_forgetting.Piece
Simple constructor.
AI_human - Class in cz.nipax.hippo.pexeso
Makes possible for human to play.
AI_human(Playground) - Constructor for class cz.nipax.hippo.pexeso.AI_human
Simple contructor
AI_lhd - Class in cz.nipax.hippo.pexeso
Implementation of "classic" inteligence with LHD and not enhanced random.
AI_lhd(Playground, int) - Constructor for class cz.nipax.hippo.pexeso.AI_lhd
Just a simple constructor
AI_normal - Class in cz.nipax.hippo.pexeso
Implementation of "classic" inteligence.
AI_normal(Playground) - Constructor for class cz.nipax.hippo.pexeso.AI_normal
 
AI_random - Class in cz.nipax.hippo.pexeso
Implementation of totally stupid AI.
AI_random(Playground) - Constructor for class cz.nipax.hippo.pexeso.AI_random
Simple constructor - just calls super
AI_snc - Class in cz.nipax.hippo.pexeso
Inteligence without any handicap.
AI_snc(Playground) - Constructor for class cz.nipax.hippo.pexeso.AI_snc
Simple constructor

B

beastmode - Static variable in class cz.nipax.hippo.pexeso.NewGameDlg
Remembers beast mode.
beastswitch() - Method in class cz.nipax.hippo.pexeso.Playground
Performs the beast action.

C

cbox1 - Variable in class cz.nipax.hippo.pexeso.NewGameDlg
The combobox for selecting first's player AI.
cbox1_sel - Static variable in class cz.nipax.hippo.pexeso.NewGameDlg
Remembers selection of first player's AI.
cbox2 - Variable in class cz.nipax.hippo.pexeso.NewGameDlg
The combobox for selecting second's player AI.
cbox2_sel - Static variable in class cz.nipax.hippo.pexeso.NewGameDlg
Remembers selection of second player's AI.
chbox_beast - Variable in class cz.nipax.hippo.pexeso.NewGameDlg
Checkbox for beastmode.
chbox_ts - Variable in class cz.nipax.hippo.pexeso.NewGameDlg
Checkbox for turn switch
checkDirty(int, int) - Method in class cz.nipax.hippo.pexeso.Playground
Checks if piece need redrawing.
createback() - Method in class cz.nipax.hippo.pexeso.PlaygroundComponent
 
createCombo() - Method in class cz.nipax.hippo.pexeso.NewGameDlg
Creates new combobox object filled with AI names.
createGUI(JFrame) - Method in class cz.nipax.hippo.pexeso.AboutDlg
Creates new dialog.
createGUI() - Method in class cz.nipax.hippo.pexeso.MainDlg
Constructs main dialog.
createGUI(JFrame, Playground) - Method in class cz.nipax.hippo.pexeso.NewGameDlg
Creates and shows the modal dialog.
cz.nipax.hippo.pexeso - package cz.nipax.hippo.pexeso
 

D

DEBUG - Static variable in class cz.nipax.hippo.pexeso.AI
Determines weather AI.println(java.lang.String) will write anything to output.
DEBUG - Static variable in class cz.nipax.hippo.pexeso.Playground
The debug mode.
DEBUG - Static variable in class cz.nipax.hippo.pexeso.PlaygroundComponent
Enables debug messages.
dialog - Variable in class cz.nipax.hippo.pexeso.AboutDlg
The About dialog.
dialog - Variable in class cz.nipax.hippo.pexeso.NewGameDlg
The dialog window.
dirty - Variable in class cz.nipax.hippo.pexeso.Playground.Piece
If something changed.
drawImage_true(Graphics, Image, int, int) - Method in class cz.nipax.hippo.pexeso.PlaygroundComponent
Graphics.drawImage may return false and then no image is drawn.

F

first_random_move() - Method in class cz.nipax.hippo.pexeso.AI_forgetting
Random move in first turn.
first_turn() - Method in class cz.nipax.hippo.pexeso.AI_forgetting
Searches stored data and try to find two know pieces with same ID.
frame - Variable in class cz.nipax.hippo.pexeso.MainDlg
The main frame of application.

G

game_started - Variable in class cz.nipax.hippo.pexeso.Playground
false after inicialization before Playground.start() called.
getAI(int) - Method in class cz.nipax.hippo.pexeso.NewGameDlg
Creates AI object from selection of combobox.
getCPName() - Method in class cz.nipax.hippo.pexeso.Playground
Gets string ID if current player.
getH() - Method in class cz.nipax.hippo.pexeso.PGTheme
Gets width of pisture.
getID(int, int) - Method in class cz.nipax.hippo.pexeso.Playground
Returns ID of card on position x,y.
getImage(int) - Method in class cz.nipax.hippo.pexeso.PGTheme
Return Image associated with ID.
getname() - Method in class cz.nipax.hippo.pexeso.AI
Gets name of AI.
getname() - Method in class cz.nipax.hippo.pexeso.AI_enhanced
Get name of AI
getname() - Method in class cz.nipax.hippo.pexeso.AI_forgetting
Returns name of AI.
getname() - Method in class cz.nipax.hippo.pexeso.AI_human
Get name of AI.
getname() - Method in class cz.nipax.hippo.pexeso.AI_lhd
Get name of AI
getname() - Method in class cz.nipax.hippo.pexeso.AI_normal
Get name of AI
getname() - Method in class cz.nipax.hippo.pexeso.AI_random
Get name of AI
getname() - Method in class cz.nipax.hippo.pexeso.AI_snc
Get name of AI
getPreferredSize() - Method in class cz.nipax.hippo.pexeso.PlaygroundComponent
Set default size of playground.
getRandpiece() - Method in class cz.nipax.hippo.pexeso.Playground
Get one valid Playground.Piece from Playground.m_field.
getScore(int) - Method in class cz.nipax.hippo.pexeso.Playground
Gets score of player.
getSpace() - Method in class cz.nipax.hippo.pexeso.PGTheme
Gets spacing between pictures when drawn in grid on the screen.
getW() - Method in class cz.nipax.hippo.pexeso.PGTheme
Gets width of pisture.
getWinner() - Method in class cz.nipax.hippo.pexeso.Playground
Gets ID of winner if game has ended.
getX() - Method in class cz.nipax.hippo.pexeso.Playground
Gets width of Playground.m_field
getY() - Method in class cz.nipax.hippo.pexeso.Playground
Gets height of Playground.m_field

I

id - Variable in class cz.nipax.hippo.pexeso.AI_forgetting.Piece
Id of card. -1 == don't know
init(int, int) - Method in class cz.nipax.hippo.pexeso.Playground
Inits new game on filed with dimensions x, y.
isEnd() - Method in class cz.nipax.hippo.pexeso.Playground
Checks for end of game.
itmAbout - Variable in class cz.nipax.hippo.pexeso.MainDlg
Main menu item.
itmNew - Variable in class cz.nipax.hippo.pexeso.MainDlg
Main menu item.
itmQuit - Variable in class cz.nipax.hippo.pexeso.MainDlg
Main menu item.
ivalidate(int, int) - Method in class cz.nipax.hippo.pexeso.AI
Notify AI, that position is now invalid.
ivalidate(int, int) - Method in class cz.nipax.hippo.pexeso.AI_forgetting
Invaliding position.

K

kill() - Method in class cz.nipax.hippo.pexeso.AI
Notify AI, that it should end now and no longer disturb anyone.

L

last - Variable in class cz.nipax.hippo.pexeso.AI_forgetting.Piece
Turn when the piece was shown for the last time.
little_hell_deamon() - Method in class cz.nipax.hippo.pexeso.AI_lhd
Randomly mixes knowlages of AI.
loadImage(String) - Method in class cz.nipax.hippo.pexeso.PGTheme
Helper method to load an image file from the CLASSPATH or current dir

M

m_ai - Variable in class cz.nipax.hippo.pexeso.PlaygroundComponent
Currently active AI.
m_back - Variable in class cz.nipax.hippo.pexeso.PlaygroundComponent
 
m_back_vol - Variable in class cz.nipax.hippo.pexeso.PlaygroundComponent
Off screen image of game.
m_beastmode - Variable in class cz.nipax.hippo.pexeso.Playground
Random switching cards after turns.
m_cards - Variable in class cz.nipax.hippo.pexeso.Playground
Number of cards left in game. if == 0, the game ends.
m_field - Variable in class cz.nipax.hippo.pexeso.AI_forgetting
Representation of playground by field of AI_forgetting.Pieces.
m_field - Variable in class cz.nipax.hippo.pexeso.Playground
the desk with playground
m_image - Variable in class cz.nipax.hippo.pexeso.PGTheme
 
m_killed - Variable in class cz.nipax.hippo.pexeso.AI
Determines state of AI.
m_lastID - Variable in class cz.nipax.hippo.pexeso.AI_forgetting
Last revealed ID.
m_pg - Variable in class cz.nipax.hippo.pexeso.AI
Playground where this AI is used.
m_pg - Variable in class cz.nipax.hippo.pexeso.PlaygroundComponent
Local reference to main Playground
m_pgc - Variable in class cz.nipax.hippo.pexeso.Playground
For notifying, that a refresh is needed.
m_sleep_switch - Variable in class cz.nipax.hippo.pexeso.Playground
How long to sleep after switching cards at end of turn in switch mode.
m_sleep_turn - Variable in class cz.nipax.hippo.pexeso.Playground
How long to sleep after end of turn.
m_theme - Variable in class cz.nipax.hippo.pexeso.PlaygroundComponent
All graphic and dimensions of graphics
m_turn - Variable in class cz.nipax.hippo.pexeso.AI_forgetting
Number of current turn.
m_turnswitch - Variable in class cz.nipax.hippo.pexeso.Playground
Switches two cards when visible.
m_type - Variable in class cz.nipax.hippo.pexeso.AI_lhd
 
m_x - Variable in class cz.nipax.hippo.pexeso.AI_forgetting
width of playgorund
m_x - Variable in class cz.nipax.hippo.pexeso.Playground
width of Playground.m_field
m_y - Variable in class cz.nipax.hippo.pexeso.AI_forgetting
height of playground
m_y - Variable in class cz.nipax.hippo.pexeso.Playground
height of Playground.m_field
Main - Class in cz.nipax.hippo.pexeso
Class containing only function main.
Main() - Constructor for class cz.nipax.hippo.pexeso.Main
 
main(String[]) - Static method in class cz.nipax.hippo.pexeso.Main
Creates and shows MainDlg.
MainDlg - Class in cz.nipax.hippo.pexeso
Holds main window and playground.
MainDlg() - Constructor for class cz.nipax.hippo.pexeso.MainDlg
Constructs and inicializes MainDlg.pg.
mouseClicked(MouseEvent) - Method in class cz.nipax.hippo.pexeso.PlaygroundComponent
Computes field where user has clicked and sends it to m_ai via AI.userinput(int, int).
mouseEntered(MouseEvent) - Method in class cz.nipax.hippo.pexeso.PlaygroundComponent
Empty function - just for MouseListener interface.
mouseExited(MouseEvent) - Method in class cz.nipax.hippo.pexeso.PlaygroundComponent
Empty function - just for MouseListener interface.
mousePressed(MouseEvent) - Method in class cz.nipax.hippo.pexeso.PlaygroundComponent
Empty function - just for MouseListener interface.
mouseReleased(MouseEvent) - Method in class cz.nipax.hippo.pexeso.PlaygroundComponent
Empty function - just for MouseListener interface.
MOVESLEEP - Static variable in class cz.nipax.hippo.pexeso.AI
Sleeptime between moves.
my_turn - Variable in class cz.nipax.hippo.pexeso.AI_forgetting
For determinig who is playing now. 0 == not our turn, 1 == our first card, 2 == our second card.

N

NewGameDlg - Class in cz.nipax.hippo.pexeso
Creates modal dialog to select players for new game.
NewGameDlg() - Constructor for class cz.nipax.hippo.pexeso.NewGameDlg
Simple constructor that set all to null.
nextturn() - Method in class cz.nipax.hippo.pexeso.Playground
Ends current turn.

O

OLD_CP - Static variable in class cz.nipax.hippo.pexeso.Main
To work with older classpath
onturn() - Method in class cz.nipax.hippo.pexeso.AI
Notification from Playground that it is our turn.
onturn() - Method in class cz.nipax.hippo.pexeso.AI_forgetting
Computes first move using AI_forgetting.first_turn().
onturn() - Method in class cz.nipax.hippo.pexeso.AI_lhd
Cursing the AI :-)
onturn() - Method in class cz.nipax.hippo.pexeso.AI_random
Makes two random moves.

P

paint_offscreen(boolean, Graphics) - Method in class cz.nipax.hippo.pexeso.PlaygroundComponent
Paints playground and game statistic.
paintComponent(Graphics) - Method in class cz.nipax.hippo.pexeso.PlaygroundComponent
 
pg - Variable in class cz.nipax.hippo.pexeso.MainDlg
The game state.
pg - Variable in class cz.nipax.hippo.pexeso.NewGameDlg
The playground for which this dialog selects players.
pgc - Variable in class cz.nipax.hippo.pexeso.MainDlg
Component for displaying game status.
PGTheme - Class in cz.nipax.hippo.pexeso
This class should hold description of visualisation.
PGTheme() - Constructor for class cz.nipax.hippo.pexeso.PGTheme
 
player - Variable in class cz.nipax.hippo.pexeso.Playground
Players in game - 2
Playground - Class in cz.nipax.hippo.pexeso
Implementation of class - holds inner things about pexeso game state.
Playground() - Constructor for class cz.nipax.hippo.pexeso.Playground
Allocates objects for playground
Playground.Piece - Class in cz.nipax.hippo.pexeso
Info about one piece in game.
Playground.Piece(int) - Constructor for class cz.nipax.hippo.pexeso.Playground.Piece
Simple constructor.
Playground.Player - Class in cz.nipax.hippo.pexeso
Info about one player.
Playground.Player() - Constructor for class cz.nipax.hippo.pexeso.Playground.Player
Simple constructor
PlaygroundComponent - Class in cz.nipax.hippo.pexeso
PlaygroundComponent creates playground and gets user input.
PlaygroundComponent(Playground) - Constructor for class cz.nipax.hippo.pexeso.PlaygroundComponent
Perpares whole class for use.
println(String) - Method in class cz.nipax.hippo.pexeso.AI
Inteligent printing message.
println(String) - Method in class cz.nipax.hippo.pexeso.Playground
Inteligent debug message printinge.
println(String) - Method in class cz.nipax.hippo.pexeso.PlaygroundComponent
Inteligent message printing.

R

random_move() - Method in class cz.nipax.hippo.pexeso.AI_enhanced
Creates one random move, but only on card, that hasn't been revealed yet.
random_move() - Method in class cz.nipax.hippo.pexeso.AI_random
Creates one valid random move.
registerAI(AI) - Method in class cz.nipax.hippo.pexeso.PlaygroundComponent
Set current AI.
repaint_later(boolean) - Method in class cz.nipax.hippo.pexeso.PlaygroundComponent
This should be caled from Playground if repaint is wanted.
reset(AI) - Method in class cz.nipax.hippo.pexeso.Playground.Player
New game inicialization.
rev - Variable in class cz.nipax.hippo.pexeso.Playground.Player
How many pictures the player reverted.
revc - Variable in class cz.nipax.hippo.pexeso.AI_forgetting.Piece
How many times the piece was revieled.
revealed(int, int, int) - Method in class cz.nipax.hippo.pexeso.AI
Notification from Playground that it card in playground was revealed.
revealed(int, int, int) - Method in class cz.nipax.hippo.pexeso.AI_forgetting
Stores info about revealed card and makes second move if our turn.
revealed(int, int, int) - Method in class cz.nipax.hippo.pexeso.AI_lhd
Respond to revealed and cursing the AI.
revealed - Variable in class cz.nipax.hippo.pexeso.Playground.Piece
true if the picture is currently visible
revs - Variable in class cz.nipax.hippo.pexeso.Playground.Player
revealed pieces - max 2

S

score - Variable in class cz.nipax.hippo.pexeso.Playground.Player
Number of found pairs.
second_random_move() - Method in class cz.nipax.hippo.pexeso.AI_forgetting
Random move in second turn.
second_random_move() - Method in class cz.nipax.hippo.pexeso.AI_snc
Creates one random move, but only on card, that hasn't been revealed yet.
second_turn() - Method in class cz.nipax.hippo.pexeso.AI_forgetting
Searches for buddy for just revealed pice.
setBeastmode(boolean) - Method in class cz.nipax.hippo.pexeso.Playground
Change state of Playground.m_beastmode.
setPGC(PlaygroundComponent) - Method in class cz.nipax.hippo.pexeso.Playground
Set m_pgc variable.
setSleep(int) - Static method in class cz.nipax.hippo.pexeso.AI
Set sleep time.
setSwitchturn(boolean) - Method in class cz.nipax.hippo.pexeso.Playground
Controls state of Playground.m_turnswitch.
setTheme(PGTheme) - Method in class cz.nipax.hippo.pexeso.PlaygroundComponent
Chenges current theme.
start() - Method in class cz.nipax.hippo.pexeso.Playground
Starts game - check if AI are allready added.
switchpieces(int, int, int, int) - Method in class cz.nipax.hippo.pexeso.AI_lhd
Switches pieces in AI_forgetting.m_field.
switchplayer(boolean) - Method in class cz.nipax.hippo.pexeso.Playground
Change current player.

T

thread_turn() - Method in class cz.nipax.hippo.pexeso.AI_forgetting
Computes one turn in separate thread.
try_turn(int, int) - Method in class cz.nipax.hippo.pexeso.AI_forgetting
Delivers turn to Playground.wantturn(cz.nipax.hippo.pexeso.AI, int, int).
try_turn(int, int) - Method in class cz.nipax.hippo.pexeso.AI_lhd
Just removed random moves because it is done by LHD.
try_turn(int, int) - Method in class cz.nipax.hippo.pexeso.AI_normal
Just removed random moves around
turnswitch - Static variable in class cz.nipax.hippo.pexeso.NewGameDlg
Remembers turn switch mode
type - Variable in class cz.nipax.hippo.pexeso.Playground.Piece
id of piece.

U

update(int) - Method in class cz.nipax.hippo.pexeso.AI_forgetting.Piece
Updates info about piece.
updateinvalidAI() - Method in class cz.nipax.hippo.pexeso.Playground
Checks all cards in game and call AI.ivalidate(int, int) for every invalid card.
updaterevealedAI() - Method in class cz.nipax.hippo.pexeso.Playground
Checks all cards in game and call AI.revealed(int, int, int) for every visible card.
userinput(int, int) - Method in class cz.nipax.hippo.pexeso.AI
If user clicks on any card, this event is generated.
userinput(int, int) - Method in class cz.nipax.hippo.pexeso.AI_human
Passes user input to Playground.

V

valid - Variable in class cz.nipax.hippo.pexeso.AI_forgetting.Piece
Is the card (still) there?
valid - Variable in class cz.nipax.hippo.pexeso.Playground.Piece
false == not valid piece - allready took it

W

wantturn(AI, int, int) - Method in class cz.nipax.hippo.pexeso.Playground
This should be called by AI when it wants to make turn.

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