diff options
author | Stijn Buys <ingar@osirion.org> | 2009-11-14 14:14:21 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2009-11-14 14:14:21 +0000 |
commit | 4293e8854a30443e4d5818fc55df404976dbfd9b (patch) | |
tree | 816665ba37acfd5a39c0544c3b2acbf04c8c5d3d /src/game/base/shipmodel.cc | |
parent | a993d31910b63a1f897e470842934e6ffefad32c (diff) |
update the info system, fixes network info exchange
Diffstat (limited to 'src/game/base/shipmodel.cc')
-rw-r--r-- | src/game/base/shipmodel.cc | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/src/game/base/shipmodel.cc b/src/game/base/shipmodel.cc index 9bd7573..4f219eb 100644 --- a/src/game/base/shipmodel.cc +++ b/src/game/base/shipmodel.cc @@ -35,10 +35,10 @@ ShipModel::~ShipModel() void ShipModel::generate_info() { - clear_text(); + //clear_text(); add_text(""); - add_text("^B" + name() + " specifications:^N"); + add_text("^BSpecifications:^N"); std::stringstream str; str << "price: ^B" << price() << " ^Ncredits"; add_text(str.str()); @@ -67,16 +67,6 @@ void ShipModel::generate_info() } } -void ShipModel::list() -{ - core::Info::list_class(shipmodel_infotype); -} - -ShipModel *ShipModel::find(const unsigned int id) -{ - return (ShipModel *) core::Info::find(shipmodel_infotype, id); -} - ShipModel *ShipModel::find(const std::string & label) { return (ShipModel *) core::Info::find(shipmodel_infotype, label); |