add bullet.*
This commit is contained in:
parent
1e27932ad6
commit
185f92ffec
23
server/gameserver/bullet.cc
Normal file
23
server/gameserver/bullet.cc
Normal file
@ -0,0 +1,23 @@
|
||||
#include "precompile.h"
|
||||
|
||||
#include "bullet.h"
|
||||
#include "metamgr.h"
|
||||
#include "movement.h"
|
||||
|
||||
Bullet::Bullet():Entity()
|
||||
{
|
||||
entity_subtype = EST_Bullet;
|
||||
}
|
||||
|
||||
Bullet::~Bullet()
|
||||
{
|
||||
}
|
||||
|
||||
void Bullet::Initialize()
|
||||
{
|
||||
}
|
||||
|
||||
void Bullet::Update(int delta_time)
|
||||
{
|
||||
// movement_component->Update(delta_time);
|
||||
}
|
21
server/gameserver/bullet.h
Normal file
21
server/gameserver/bullet.h
Normal file
@ -0,0 +1,21 @@
|
||||
#pragma once
|
||||
|
||||
#include "entity.h"
|
||||
|
||||
namespace MetaData
|
||||
{
|
||||
struct Player;
|
||||
}
|
||||
|
||||
class Human;
|
||||
class Bullet : public Entity
|
||||
{
|
||||
public:
|
||||
Human* player = nullptr;
|
||||
Vector2D born_pos;
|
||||
Vector2D born_dir;
|
||||
|
||||
Bullet();
|
||||
virtual ~Bullet() override;
|
||||
virtual void Update(int delta_time) override;
|
||||
};
|
Loading…
x
Reference in New Issue
Block a user