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

OnStack Class Reference

Inheritance diagram for OnStack:

Inheritance graph
[legend]
Collaboration diagram for OnStack:

Collaboration graph
[legend]

Detailed Description

Test whether object can carry moved stack.

Definition at line 11 of file OnStack.h.

Public Member Functions

virtual bool isSatisfy (Cube *model) const
virtual bool isWrong (Cube *model) const


Member Function Documentation

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

Implements OnCondition.

Definition at line 13 of file OnStack.h.

00014         {
00015             bool result = false;
00016             if (!model->isAlive()) {
00017                 if (model->rules()->getDir() == Dir::DIR_NO
00018                         && model->rules()->isOnStrongPad(Cube::LIGHT))
00019                 {
00020                         result = true;
00021                 }
00022             }
00023             return result;
00024         }

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

Implements OnCondition.

Definition at line 26 of file OnStack.h.

00027         {
00028             return model->isAlive();
00029         }


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