KComputer Class Reference

#include <kwin4proc.h>

List of all members.

Public Slots

void slotCommand (QDataStream &, int msgid, int receiver, int sender)
void slotInit (QDataStream &, int id)
void slotTurn (QDataStream &, bool turn)

Public Member Functions

 KComputer ()

Public Attributes

KGameProcess proc

Protected Member Functions

void sendValue (long value)
long random (long max)
long think (QDataStream &in, QDataStream &out, bool hint)
Farbe SwitchPlayer (Farbe amZug=Niemand)
Farbe GameOver (FARBE feld[][SIZE_X+1], char anzahl[])
void DoMove (char move, Farbe farbe, FARBE feld[][SIZE_X+1], char anzahl[])
int GetCompMove ()
 Computer Routinen.
long Wertung (Farbe farbe, FARBE feld[][SIZE_X+1], char anzahl[], int reklev, int zug)
long Bewertung (Farbe farbe, FARBE feld[][SIZE_X+1])
void InitField ()


Detailed Description

Definition at line 31 of file kwin4proc.h.


Constructor & Destructor Documentation

KComputer::KComputer  ) 
 

Definition at line 46 of file kwin4proc.cpp.

References InitField(), proc, slotCommand(), slotInit(), and slotTurn().

Here is the call graph for this function:


Member Function Documentation

long KComputer::Bewertung Farbe  farbe,
FARBE  feld[][SIZE_X+1]
[protected]
 

Definition at line 277 of file kwin4proc.cpp.

References Gelb, Niemand, random(), Rot, SIEG_WERT, SIZE_Y_ALL, and WIN4.

Referenced by Wertung().

Here is the call graph for this function:

void KComputer::DoMove char  move,
Farbe  farbe,
FARBE  feld[][SIZE_X+1],
char  anzahl[]
[protected]
 

Definition at line 370 of file kwin4proc.cpp.

References Niemand, SIZE_Y, and Tip.

Referenced by GetCompMove(), think(), and Wertung().

Farbe KComputer::GameOver FARBE  feld[][SIZE_X+1],
char  anzahl[]
[protected]
 

Definition at line 337 of file kwin4proc.cpp.

References Gelb, Niemand, Rot, SIZE_Y_ALL, and WIN4.

Referenced by Wertung().

int KComputer::GetCompMove  )  [protected]
 

Computer Routinen.

Definition at line 206 of file kwin4proc.cpp.

References DoMove(), LOWERT, MAXANZAHL, SIEG_WERT, SIZE_X, SIZE_Y_ALL, START_REK, and Wertung().

Here is the call graph for this function:

void KComputer::InitField  )  [protected]
 

Definition at line 397 of file kwin4proc.cpp.

References FELD_OFF, SIZE_X, SIZE_Y, and SIZE_Y_ALL.

Referenced by KComputer(), and think().

long KComputer::random long  max  )  [protected]
 

Definition at line 413 of file kwin4proc.cpp.

References proc.

Referenced by Bewertung().

void KComputer::sendValue long  value  )  [protected]
 

Definition at line 97 of file kwin4proc.cpp.

References proc.

Referenced by slotTurn().

void KComputer::slotCommand QDataStream &  ,
int  msgid,
int  receiver,
int  sender
[slot]
 

Definition at line 179 of file kwin4proc.cpp.

References proc, and think().

Referenced by KComputer().

void KComputer::slotInit QDataStream &  ,
int  id
[slot]
 

Definition at line 68 of file kwin4proc.cpp.

Referenced by KComputer().

void KComputer::slotTurn QDataStream &  ,
bool  turn
[slot]
 

Definition at line 80 of file kwin4proc.cpp.

References proc, sendValue(), and think().

Referenced by KComputer().

Farbe KComputer::SwitchPlayer Farbe  amZug = Niemand  )  [protected]
 

Definition at line 358 of file kwin4proc.cpp.

References Gelb, Niemand, and Rot.

Referenced by Wertung().

long KComputer::think QDataStream &  in,
QDataStream &  out,
bool  hint
[protected]
 

Definition at line 109 of file kwin4proc.cpp.

References DoMove(), InitField(), SIZE_X, and SIZE_Y.

Referenced by slotCommand(), and slotTurn().

Here is the call graph for this function:

long KComputer::Wertung Farbe  farbe,
FARBE  feld[][SIZE_X+1],
char  anzahl[],
int  reklev,
int  zug
[protected]
 

Definition at line 240 of file kwin4proc.cpp.

References Bewertung(), DoMove(), GameOver(), LOWERT, MAXANZAHL, MAXZUG, Niemand, SIEG_WERT, SIZE_X, SIZE_Y_ALL, and SwitchPlayer().

Referenced by GetCompMove().

Here is the call graph for this function:


Member Data Documentation

KGameProcess KComputer::proc
 

Definition at line 39 of file kwin4proc.h.

Referenced by KComputer(), main(), random(), sendValue(), slotCommand(), and slotTurn().


The documentation for this class was generated from the following files:
Generated on Sun Mar 4 10:56:43 2007 for KWin4 by  doxygen 1.4.6