Main Page | Class Hierarchy | Alphabetical List | Data Structures | Directories | File List | Data Fields | Globals

OnStrongPad Class Reference

Inheritance diagram for OnStrongPad:

Inheritance graph
[legend]
Collaboration diagram for OnStrongPad:

Collaboration graph
[legend]

Detailed Description

Test whether model is on Wall or on powerful fish.

Definition at line 10 of file OnStrongPad.h.

Public Member Functions

 OnStrongPad (Cube::eWeight weight)
virtual bool isSatisfy (Cube *model) const
virtual bool isWrong (Cube *model) const


Constructor & Destructor Documentation

OnStrongPad::OnStrongPad Cube::eWeight  weight  )  [inline]
 

Definition at line 14 of file OnStrongPad.h.

00014 { m_weight = weight; }


Member Function Documentation

virtual bool OnStrongPad::isSatisfy Cube model  )  const [inline, virtual]
 

Implements OnCondition.

Definition at line 16 of file OnStrongPad.h.

00017         {
00018             return model->isWall()
00019                 || (model->isAlive() && model->getPower() >= m_weight);
00020         }

virtual bool OnStrongPad::isWrong Cube model  )  const [inline, virtual]
 

Implements OnCondition.

Definition at line 22 of file OnStrongPad.h.

00023         {
00024             return model->isAlive() && model->getPower() < m_weight;
00025         }


The documentation for this class was generated from the following file:
Generated on Wed Jun 1 09:56:03 2005 for Fish Fillets - Next Generation by  doxygen 1.4.2