Rev | Line | |
---|
[583] | 1 | #ifndef _FROG_EVENT_SIM_HIT_H__
|
---|
| 2 | #define _FROG_EVENT_SIM_HIT_H__
|
---|
| 3 |
|
---|
| 4 | #include "Base.h"
|
---|
| 5 |
|
---|
| 6 | namespace FROG{
|
---|
| 7 |
|
---|
| 8 | class Event_Sim_Hit : public Base {
|
---|
| 9 | public :
|
---|
| 10 | float x; float y; float z; float Charge; unsigned char ProcessType;
|
---|
| 11 |
|
---|
| 12 | virtual unsigned int chunkId(){ return 11010;}
|
---|
| 13 | virtual bool isCompactible(){ return true; }
|
---|
| 14 |
|
---|
| 15 | Event_Sim_Hit(){}
|
---|
| 16 | Event_Sim_Hit(float x_, float y_, float z_, float Charge_, unsigned char ProcessType_):
|
---|
| 17 | x(x_),y(y_),z(z_),Charge(Charge_), ProcessType(ProcessType_){}
|
---|
| 18 |
|
---|
| 19 | virtual ByteBuffer writeData(){
|
---|
| 20 | ByteBuffer toReturn(20);
|
---|
| 21 | toReturn.putFloat(x);
|
---|
| 22 | toReturn.putFloat(y);
|
---|
| 23 | toReturn.putFloat(z);
|
---|
| 24 | toReturn.putFloat(Charge);
|
---|
| 25 | toReturn.putInt(ProcessType);
|
---|
| 26 | return toReturn;
|
---|
| 27 | }
|
---|
| 28 | };
|
---|
| 29 |
|
---|
| 30 | }//FROG Namespace
|
---|
| 31 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.