Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

RS::PassKick Class Reference

This predicate tells you when to shoot or to pass. More...

Inheritance diagram for RS::PassKick:

Inheritance graph
[legend]
Collaboration diagram for RS::PassKick:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 PassKick ()
 Create a predicate with default behavior.

 PassKick (const PassKick &obj)
 Creates a predicate that is an exact copy of obj.

virtual ~PassKick ()
 Destroys the predicate.

PassKick & operator= (const PassKick &obj)
 Assignment operator.

virtual FuzzyBool operator() ()
 Function application operator.

virtual FuzzyBool evaluate ()
 Should return the truth value of the predicate.


Protected Member Functions

virtual void update (const UInt32 update_number)
 The update function, should be used to update the value of the predicate if necessary.


Protected Attributes

AgentViewagentView
BallViewballView
PlayerViewplayerView
double ** v1
double * v2
double ** w1
double * w2
int max

Detailed Description

This predicate tells you when to shoot or to pass.

Unit:
Framework/predicate
Revision
1.2
Author
aip12
Date
2004/01/15 18:44:01

Definition at line 77 of file PassKick.h.


Member Function Documentation

PassKick & RS::PassKick::operator= const PassKick &    obj
 

Assignment operator.

Assigns obj to this predicate.

Definition at line 115 of file PassKick.cc.

References agentView, ballView, max, playerView, v1, v2, w1, and w2.

FuzzyBool RS::PassKick::operator()   [inline, virtual]
 

Function application operator.

Will call evaluate().

Reimplemented from RS::Predicate.

Definition at line 54 of file PassKick.icc.

References evaluate().

void RS::PassKick::update const UInt32    update_number [protected, virtual]
 

The update function, should be used to update the value of the predicate if necessary.

The method needUpdate(const UInt32 update_number) can be used to check if the predicate needs to be updated based on the last update number it was updated for.

Implements RS::Predicate.

Definition at line 178 of file PassKick.cc.


The documentation for this class was generated from the following files:
Generated on Mon Aug 29 08:28:48 2011 for RoboSoc by doxygen1.3-rc3