Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
blob: 1d93f034ff8be190b752d05ce900a7a5db46758a (plain)
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
/*
   base/shipdealer.h
   This file is part of the Osirion project and is distributed under
   the terms and conditions of the GNU General Public License version 2
*/

#ifndef __INCLUDED_BASE_SHIPDEALER_H__
#define __INCLUDED_BASE_SHIPDEALER_H__

#include <list>

#include "base/shipmodel.h"
#include "core/entity.h"

namespace game
{

class ShipDealer
{
public:
	typedef std::list<ShipModel *> Models;

	ShipDealer();
	~ShipDealer();

	/// add a ship model to the dealer list
	ShipModel *add(const std::string &modelname);

	/// find a ship model in the dealer list
	ShipModel *find(const std::string &modelname) const;

	/// find a ship model in the dealer list
	ShipModel *find(ShipModel *shipmodel) const;

	static void func_buy(core::Player *player, const std::string &args);

private:
	Models		dealer_models;
};

}

#endif // __INCLUDED_BASE_SHIPDEALER_H__