shootDec decodes Shoot interactions.
#ifndef ShootDecoder_H_
#define ShootDecoder_H_
#if DtHLA
#define DtDECLARE_SHOOT_PARAM_DECODER(paramName) \
DtDECLARE_PARAM_DECODER(DtFireInteraction, paramName)
{
public:
virtual ~ShootDecoder();
protected:
DtDECLARE_SHOOT_PARAM_DECODER(Shooter);
DtDECLARE_SHOOT_PARAM_DECODER(Shootee);
};
#endif
#endif
#if DtHLA
#include <stdio.h>
#include <string.h>
ShootDecoder::ShootDecoder(
DtInterClassDesc* classDesc) :
DtInteractionDecoder(exConn, classDesc)
{
DtADD_PARAM_DECODER(Shooter);
DtADD_PARAM_DECODER(Shootee);
}
ShootDecoder::~ShootDecoder()
{
}
const RTI::ParameterHandleValuePairSet& params,
int index)
{
RTI::ULong length = 0;
char* netVal = (char*)
params.getValuePointer(index, length);
static char buff[100];
strncpy(buff, netVal, length);
buff[length] = 0;
}
const RTI::ParameterHandleValuePairSet& params,
int index)
{
RTI::ULong length = 0;
char* netVal = (char*)
params.getValuePointer(index, length);
static char buff[100];
strncpy(buff, netVal, length);
buff[length] = 0;
}
#endif