Interface RelFunction

All Known Implementing Classes:
AboveFunction, BehindFunction, BelowFunction, ColorFunction, FrontFunction, LeftFunction, NearFunction, RightFunction, SizeFunction

public interface RelFunction

Interface for relational function. Relational functions have two forms, commands and queries.


Method Summary
 void command(VRObject target)
          Do a command.
 void command(VRObject target, VRObject reference)
          Do a command.
 boolean query(VRObject target)
          Query an object.
 boolean query(VRObject target, VRObject reference)
          Do a query taking two objects.
 

Method Detail

query

public boolean query(VRObject target,
                     VRObject reference)
Do a query taking two objects.
Parameters:
target - The target object in the query.
reference - The reference object in the query. Returns true or false base on query.

command

public void command(VRObject target,
                    VRObject reference)
Do a command.
Parameters:
target - The target object to perform the command on.
reference - A reference object.

query

public boolean query(VRObject target)
Query an object.
Parameters:
target - The object to query. Returns true or false base on query.

command

public void command(VRObject target)
Do a command.
Parameters:
target - The target object to do command on.