ArServerModeWander Class Reference

#include <ArServerModeWander.h>

Inheritance diagram for ArServerModeWander:

ArServerMode List of all members.

Detailed Description

Examples:

drawingsExampleWithRobot.cpp, serverDemo.cpp, and simpleServerExample.cpp.


Public Member Functions

virtual void activate (void)
 The function called when the mode is activated.
 ArServerModeWander (ArServerBase *server, ArRobot *robot)
virtual void checkDefault (void)
 This will be called when there would be no other modes, if this mode wants to take over it should activate itself, if it doesn't want to take over it shouldn't activate.
virtual void deactivate (void)
 The function called when the mode is deactivated.
virtual ArActionGroupgetActionGroup (void)
 This function should return the action group this mode uses.
void netWander (ArServerClient *client, ArNetPacket *packet)
virtual void userTask (void)
 The ArMode's user task, don't need one, subclass must provide if needed.
void wander (void)
virtual ~ArServerModeWander ()

Protected Attributes

ArFunctor2C< ArServerModeWander,
ArServerClient *, ArNetPacket * > 
myNetWanderCB
ArActionGroupWander myWanderGroup


Constructor & Destructor Documentation

ArServerModeWander::ArServerModeWander ( ArServerBase server,
ArRobot robot 
)

ArServerModeWander::~ArServerModeWander (  )  [virtual]


Member Function Documentation

void ArServerModeWander::activate ( void   )  [virtual]

The function called when the mode is activated.

Subclasses must implement this, but also call baseActivate().-

Implements ArServerMode.

virtual void ArServerModeWander::checkDefault ( void   )  [inline, virtual]

This will be called when there would be no other modes, if this mode wants to take over it should activate itself, if it doesn't want to take over it shouldn't activate.

Reimplemented from ArServerMode.

void ArServerModeWander::deactivate ( void   )  [virtual]

The function called when the mode is deactivated.

Subclasses must implement this, and also call baseDeactivate().

Implements ArServerMode.

virtual ArActionGroup* ArServerModeWander::getActionGroup ( void   )  [inline, virtual]

This function should return the action group this mode uses.

Reimplemented from ArServerMode.

void ArServerModeWander::netWander ( ArServerClient client,
ArNetPacket packet 
)

void ArServerModeWander::userTask ( void   )  [virtual]

The ArMode's user task, don't need one, subclass must provide if needed.

Reimplemented from ArServerMode.

void ArServerModeWander::wander ( void   ) 


Member Data Documentation

ArFunctor2C<ArServerModeWander, ArServerClient *, ArNetPacket *> ArServerModeWander::myNetWanderCB [protected]

ArActionGroupWander ArServerModeWander::myWanderGroup [protected]


The documentation for this class was generated from the following files:
Generated on Fri Jul 31 12:37:29 2009 for ArNetworking by  doxygen 1.4.7