rosaria/Legacy/Aria/ArNetworking/include/ArServerModeWander.h

27 lines
843 B
C
Raw Permalink Normal View History

2021-12-16 15:07:59 +01:00
#ifndef ARNETMODEWANDER_H
#define ARNETMODEWANDER_H
#include "ariaTypedefs.h"
#include "Aria.h"
#include "ArNetworking.h"
#include "ArServerMode.h"
class ArServerModeWander : public ArServerMode
{
public:
AREXPORT ArServerModeWander(ArServerBase *server, ArRobot *robot);
AREXPORT virtual ~ArServerModeWander();
AREXPORT virtual void activate(void);
AREXPORT virtual void deactivate(void);
AREXPORT void wander(void);
AREXPORT void netWander(ArServerClient *client, ArNetPacket *packet);
AREXPORT virtual void userTask(void);
AREXPORT virtual void checkDefault(void) { activate(); }
AREXPORT virtual ArActionGroup *getActionGroup(void) {return &myWanderGroup;}
protected:
ArActionGroupWander myWanderGroup;
ArFunctor2C<ArServerModeWander, ArServerClient *, ArNetPacket *> myNetWanderCB;
};
#endif // ARNETMODEWANDER_H