mirror of
https://github.com/pret/pokered.git
synced 2024-10-23 15:08:23 +00:00
4d0797bc3a
hg-commit-id: 1145e088ee27
32 lines
No EOL
705 B
C++
32 lines
No EOL
705 B
C++
#ifndef VELOCITY_H
|
|
#define VELOCITY_H
|
|
|
|
#include "AbstractData.h"
|
|
|
|
class Velocity : public AbstractData
|
|
{
|
|
public:
|
|
// Constructors
|
|
Velocity();
|
|
Velocity(unsigned char* byte); // Parse Immidiately
|
|
Velocity(unsigned char velocity, unsigned char length, bool); // Set value
|
|
|
|
// Direct Getters/Setters
|
|
unsigned char GetVelocity();
|
|
void SetVelocity(unsigned char value);
|
|
|
|
unsigned char GetLength();
|
|
void SetLength(unsigned char value);
|
|
|
|
// Overides
|
|
virtual std::string GenAsm();
|
|
virtual bool IsValid(unsigned char* byte);
|
|
virtual bool Parse(unsigned char* byte);
|
|
virtual unsigned int Arguments();
|
|
|
|
private:
|
|
unsigned char velocity;
|
|
unsigned char length;
|
|
};
|
|
|
|
#endif |