38 lines
716 B
C
Raw Normal View History

2013-08-30 22:23:05 +09:00
//
// Tracer.h
// OpenSpades
//
// Created by Tomoaki Kawada on 8/30/13.
// Copyright (c) 2013 yvt.jp. All rights reserved.
//
#pragma once
#include "ILocalEntity.h"
#include <Core/Math.h>
#include <Core/RefCountedObject.h>
2013-08-30 22:23:05 +09:00
namespace spades {
namespace client {
class Client;
class IImage;
class Tracer : public ILocalEntity {
Client &client;
Handle<IImage> image;
2013-08-30 22:23:05 +09:00
Vector3 startPos, dir;
float length;
float curDistance;
float visibleLength;
float velocity;
bool firstUpdate;
2013-08-30 22:23:05 +09:00
public:
Tracer(Client &, Vector3 p1, Vector3 p2, float bulletVel);
~Tracer();
bool Update(float dt) override;
void Render3D() override;
2013-08-30 22:23:05 +09:00
};
} // namespace client
} // namespace spades