forked from Corran-Raisu/FLCompanion
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Base.h
43 lines (34 loc) · 1.23 KB
/
Base.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
// Base.h: interface for the CBase class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_BASE_H__05038F85_2503_4BC3_B274_7AEA157DA550__INCLUDED_)
#define AFX_BASE_H__05038F85_2503_4BC3_B274_7AEA157DA550__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include <float.h>
#include "Dockable.h"
#include "Good.h"
#include "Faction.h"
class CSystem;
class CBase : public CDockable
{
public:
CBase() : m_hasSell(false) { for (int i = 0; i < GOODS_MAX; i++) m_sell[i] = FLT_MAX; }
~CBase() {}
void Init(const CString &nickname, const CString &caption, CSystem *system, const CString &faction, BOOL isfreighteronly);
void MakeMiningBase(CSystem *system, int x, int y, int z, UINT goodIndex, double goodsPrice);
UINT GetDockingDelay();
public:
//CString m_owner;
float m_buy[GOODS_MAX];
float m_sell[GOODS_MAX];
BOOL m_hasSell;
CFaction *m_faction;
int m_ids_info;
BOOL m_isfreighteronly;
};
extern CBase g_bases[BASES_MAX];
extern CSortedMap<CString,LPCTSTR,CBase*,CBase*> g_basesByNick;
CBase* MakeMiningBase(CSystem* system, int x, int y, int z, UINT goodIndex, double miningSpeed, double goodsPrice);
#endif // !defined(AFX_BASE_H__05038F85_2503_4BC3_B274_7AEA157DA550__INCLUDED_)