-
Notifications
You must be signed in to change notification settings - Fork 2
/
Bullet.h
50 lines (42 loc) · 1018 Bytes
/
Bullet.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#ifndef BULLET_H
#define BULLET_H
#include <vector>
#include <iterator>
enum ValueKind{VluK_Lv, VluK_Sx, VluK_Sy, VluK_T, VluK_Duv, VluK_Du, VluK_Dv, VluK_X, VluK_Y, VluK_Z, VluK_Total};
//Bullet 彈頭
class Bullet
{
//建解構子
public:
Bullet();
Bullet(const Bullet&);
~Bullet();
//資料儲存串
private:
std::vector<float> m_vfValues;
public:
const float oFlt(const ValueKind&) const;
const CString oStr(const ValueKind&) const;
void i(const ValueKind&, const float&);
void i(const ValueKind&, const CString&);
//最後更新時間
private:
CTime m_LastModifyTime;
public:
const CString GetLastTime() const;
//空物件判別
private:
BOOL isEmptyObj;
public:
const BOOL IsEmpty() const;
//float, String轉換
private:
const float str2flt(CString ) const;
const CString flt2str(const float& ) const;
//運算子
public:
void operator= (const Bullet&);
const CString ShowDataReport() const;
const CString ShowData() const;
};
#endif