00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012 #ifndef MoNetCommandInfo_h
00013 #define MoNetCommandInfo_h
00014
00015 #include <MoNetData.h>
00016
00017 const size_t MAXNUM_AGENT_COMMANDS = 2;
00018
00019 class MoNetCommandInfo {
00020 public:
00021 MoNetCommandInfo(bool syncKey);
00022 ~MoNetCommandInfo() {}
00023
00024 bool SetAgentCommand(MoNetAgentID agent, int index,
00025 MoNetPosture start, MoNetPosture end);
00026 void SetAgentResult(MoNetAgentID agent, int index, MoNetStatus st);
00027 void ClearAgentResult();
00028 bool IsDone();
00029
00030 MoNetPosture StartPosture();
00031 MoNetPosture EndPosture();
00032
00033 bool UseSyncKey() { return useSyncKey; }
00034 int NumAgentCommands() { return numAgentCommands; }
00035 MoNetAgentCommand* AgentCommand(int i) { return &agentCommand[i]; }
00036
00037 private:
00038 bool useSyncKey;
00039 int numAgentCommands;
00040 MoNetStatus status[MAXNUM_AGENT_COMMANDS];
00041 MoNetAgentCommand agentCommand[MAXNUM_AGENT_COMMANDS];
00042 };
00043
00044
00045 #endif // MoNetCommandInfo_h