Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

35 lines (27 sloc) 0.868 kb
// Copyright © 2008-2012 Pioneer Developers. See AUTHORS.txt for details
// Licensed under the terms of the GPL v3. See licenses/GPL-3.txt
#ifndef _SHIPFLAVOUR_H
#define _SHIPFLAVOUR_H
#include "ShipType.h"
#include "LmrModel.h"
#include "Serializer.h"
struct LmrObjParams;
class ShipFlavour {
public:
ShipType::Type type;
std::string regid;
int price;
LmrMaterial primaryColor;
LmrMaterial secondaryColor;
ShipFlavour();
ShipFlavour(ShipType::Type type);
void Save(Serializer::Writer &wr);
void Load(Serializer::Reader &rd);
void ApplyTo(LmrObjParams *p) const;
static void MakeTrulyRandom(ShipFlavour &v, bool atmosphereCapableOnly = false);
private:
void SaveLmrMaterial(Serializer::Writer &wr, LmrMaterial *m);
void LoadLmrMaterial(Serializer::Reader &rd, LmrMaterial *m);
void MakeRandomColor(LmrMaterial &m);
};
#endif /* _SHIPFLAVOUR_H */
Jump to Line
Something went wrong with that request. Please try again.