add android.* human.*

This commit is contained in:
aozhiwei 2019-03-14 16:34:22 +08:00
parent f1c2776777
commit eb52effa0f
7 changed files with 34 additions and 8 deletions

View File

@ -0,0 +1,3 @@
#include "precompile.h"
#include "android.h"

View File

@ -0,0 +1,8 @@
#pragma once
#include "human.h"
class Android : public Human
{
};

View File

@ -2,6 +2,7 @@
enum EntityType_e
{
ET_None = 0,
ET_Player = 1,
ET_Obstacle = 2,
ET_Building = 3,
@ -17,6 +18,7 @@ class Entity
{
public:
unsigned short entity_uniid = 0;
EntityType_e entity_type = ET_None;
Vector2D pos;
Vector2D dir;
int updated_times = 0;

View File

@ -0,0 +1,5 @@
#include "precompile.h"
#include "human.h"

View File

@ -0,0 +1,8 @@
#pragma once
#include "entity.h"
class Human : public Entity
{
};

View File

@ -1,6 +1,6 @@
#pragma once
#include "entity.h"
#include "human.h"
#include "GGListener.h"
namespace cs
@ -16,7 +16,7 @@ namespace cs
}
class Room;
class Player : public Entity
class Player : public Human
{
public:
enum { HID = HID_Player };

View File

@ -601,18 +601,18 @@ message SMPlayerInfo
//
message SMUpdate
{
repeated int32 del_objids = 2;
repeated MFObjectFull full_objects = 3;
repeated MFObjectPart part_objects = 4;
optional int32 active_player_id = 5; //id
optional MFPlayerData active_player_data = 6; //
repeated int32 del_objids = 2; //-()
repeated MFObjectFull full_objects = 3; //-()
repeated MFObjectPart part_objects = 4; //-()
optional int32 active_player_id = 5; //id(id)
optional MFPlayerData active_player_data = 6; //()
optional int32 alive_count = 15; //
optional int32 gasT = 16;
optional MFGasData gas_data = 17;
repeated MFTeamData team_data = 18;
repeated MFTeamData teams = 19;
repeated MFBullet bullets = 20; //
repeated MFShot shots = 21;
repeated MFShot shots = 21; //
repeated MFExplosion explosions = 22;
repeated MFEmote emotes = 23;
optional int32 ack = 24;