Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2010-09-18 13:25:37 +0000
committerStijn Buys <ingar@osirion.org>2010-09-18 13:25:37 +0000
commitfc4809e41bc5694231046eb2fd4c324c4daba13f (patch)
tree02f183a0779aa0457e13f42037f3631ea28b7b65 /src/core/zone.cc
parent8c6a1a404ac8d1589a37d54b3b7ce0d776fe4751 (diff)
cosmetic updates in engine list functions, trade menu updates
Diffstat (limited to 'src/core/zone.cc')
-rw-r--r--src/core/zone.cc16
1 files changed, 12 insertions, 4 deletions
diff --git a/src/core/zone.cc b/src/core/zone.cc
index ab38b1b..7fc3f4d 100644
--- a/src/core/zone.cc
+++ b/src/core/zone.cc
@@ -91,11 +91,19 @@ Zone *Zone::search(std::string const & searchname)
void Zone::list()
{
+ con_print << " "
+ << " id "
+ << "label "
+ << "name" << std::endl;
+
for (Registry::iterator it = zone_registry.begin(); it != zone_registry.end(); it++) {
Zone *zone = (*it).second;
- con_print << " id " << std::setw(4) << zone->id() << " " << zone->label() << std::endl;
+ con_print << " "
+ << "^B" << std::setw(4) << zone->id() << " "
+ << "^N" << aux::pad_right(zone->label(), 24) << " "
+ << "^N" << zone->name() << std::endl;
}
- con_print << zone_registry.size() << " registered zones" << std::endl;
+ con_print << "^B " << zone_registry.size() << " zones" << std::endl;
}
void Zone ::clear()
@@ -135,13 +143,13 @@ Zone::~Zone()
void Zone::print()
{
- con_print << "id ^B" << id() << " ^Nlabel ^B" << label() << " ^Nname ^B" << name() << std::endl;
+ con_print << " zone id ^B" << id() << " ^Nlabel ^B" << label() << " ^Nname ^B" << name() << std::endl;
Entity::list_header();
for (Content::iterator it = zone_content.begin(); it != zone_content.end(); it++) {
Entity *entity = (*it);
Entity::list(entity);
}
- con_print << zone_content.size() << " registered zone entities" << std::endl;
+ con_print << " ^B" << zone_content.size() << " zone entities" << std::endl;
}
void Zone::add(Entity *entity)