/dports/games/widelands/widelands-build21/src/game_io/ |
H A D | game_player_economies_packet.cc | 49 if (ship->get_economy(economy->type()) == economy) { in write_expedition_ship_economy() 84 assert(flag->get_economy(type)); in read() 85 EconomyDataPacket d(flag->get_economy(type), nullptr); in read() 94 assert(ship->get_economy(type)); in read() 95 EconomyDataPacket d(ship->get_economy(type), nullptr); in read() 111 assert(flag->get_economy(type)->owner().player_number() == in read() 115 flag->get_economy(type), packet_version >= 6 ? nullptr : mol); in read() 133 assert(ship->get_economy(type)); in read() 134 assert(ship->get_economy(type)->owner().player_number() == in read() 137 ship->get_economy(type), packet_version >= 6 ? nullptr : mol); in read()
|
/dports/games/widelands/widelands-build21/src/economy/ |
H A D | wares_queue.cc | 47 if (filled_ && owner_.get_economy(wwWARE)) { in cleanup() 48 owner_.get_economy(wwWARE)->remove_wares_or_workers(index_, filled_); in cleanup() 97 if (owner_.get_economy(wwWARE)) { in set_filled() 99 owner_.get_economy(wwWARE)->add_wares_or_workers(index_, filled - filled_); in set_filled() 101 owner_.get_economy(wwWARE)->remove_wares_or_workers(index_, filled_ - filled); in set_filled()
|
H A D | ship_fleet.cc | 81 e = ports_[0]->get_economy(type); in set_economy() 390 ship->set_economy(*game, ports_[0]->get_economy(wwWARE), wwWARE); in add_ship() 423 if (base.get_economy(wwWARE) == ports_[i]->base_flag().get_economy(wwWARE)) { in remove_ship() 426 if (base.get_economy(wwWORKER) == ports_[i]->base_flag().get_economy(wwWORKER)) { in remove_ship() 546 set_economy(ports_[0]->get_economy(wwWARE), wwWARE); in add_port() 547 set_economy(ports_[0]->get_economy(wwWORKER), wwWORKER); in add_port() 550 ports_[0]->get_economy(wwWARE)->check_merge( in add_port() 552 ports_[0]->get_economy(wwWORKER)->check_merge( in add_port() 585 set_economy(ports_[0]->get_economy(wwWARE), wwWARE); in remove_port() 586 set_economy(ports_[0]->get_economy(wwWORKER), wwWORKER); in remove_port() [all …]
|
H A D | economy.cc | 116 Economy* e1 = f1.get_economy(type); in check_merge() 117 Economy* e2 = f2.get_economy(type); in check_merge() 131 assert(f1.get_economy(type) == f2.get_economy(type)); in check_split() 133 Economy* e = f1.get_economy(type); in check_split() 154 if (f1->get_economy(type_) != this) in check_splits() 171 if (f1->get_economy(type_) != this || f2->get_economy(type_) != this) in check_splits() 204 assert(start.get_economy(type_) == this); in find_route() 205 assert(end.get_economy(type_) == this); in find_route() 263 assert(flag.get_economy(type_) == nullptr); in add_flag() 276 assert(flag.get_economy(type_) == this); in remove_flag() [all …]
|
H A D | cmd_call_economy_balance.cc | 41 assert(flag->get_economy(type_) == economy); in CmdCallEconomyBalance() 50 flag->get_economy(type_)->balance(timerid_); in execute() 75 Economy* e = flag_.get(egbase)->get_economy(wwWORKER); in read()
|
H A D | ware_instance.cc | 75 set_economy(ware.get_economy()); in IdleWareSupply() 251 eco = flag->get_economy(wwWARE); in set_location() 253 eco = worker->get_economy(wwWARE); in set_location() 255 eco = portdock->get_economy(wwWARE); in set_location() 257 eco = ship->get_economy(wwWARE); in set_location() 261 if (oldlocation && get_economy()) { in set_location() 262 if (get_economy() != eco) in set_location() 298 if (!get_economy()) { in update()
|
H A D | transfer.cc | 121 if (!location || !location->get_economy(type)) { in get_next_step() 127 PlayerImmovable* destination = destination_.get(location->get_economy(type)->owner().egbase()); in get_next_step() 128 if (!destination || destination->get_economy(type) != location->get_economy(type)) { in get_next_step() 146 if (!locflag.get_economy(type)->find_route(locflag, destflag, &route_)) { in get_next_step()
|
H A D | flag.cc | 144 (road ? road->get_economy(wwWARE) : owning_player->create_economy(wwWARE)) in Flag() 152 (road ? road->get_economy(wwWORKER) : owning_player->create_economy(wwWORKER)) in Flag() 187 Economy* const old = get_economy(type); in set_economy() 231 building.set_economy(get_economy(wwWARE), wwWARE); in attach_building() 232 building.set_economy(get_economy(wwWORKER), wwWORKER); in attach_building() 257 roads_[dir - 1]->set_economy(get_economy(wwWARE), wwWARE); in attach_road() 258 roads_[dir - 1]->set_economy(get_economy(wwWORKER), wwWORKER); in attach_road() 855 if (Economy* e = get_economy(wwWARE)) { in cleanup() 858 if (Economy* e = get_economy(wwWORKER)) { in cleanup()
|
H A D | portdock.cc | 126 if (e == get_economy(type)) { in set_economy() 295 if (dst && dst->get_economy(wwWARE) == get_economy(wwWARE) && in update_shippingitem() 296 dst->get_economy(wwWORKER) == get_economy(wwWORKER)) { in update_shippingitem()
|
H A D | input_queue.cc | 185 if (owner_.get_economy(type_)) { in read() 186 add_to_economy(*owner_.get_economy(type_)); in read()
|
H A D | ware_instance.h | 63 Economy* get_economy() const { in get_economy() function
|
H A D | idleworkersupply.cc | 39 set_economy(w.get_economy(wwWORKER)); in IdleWorkerSupply()
|
H A D | request.h | 86 Economy* get_economy() const { in get_economy() function
|
H A D | expedition_bootstrap.cc | 39 ware_economy_(portdock->get_economy(wwWARE)), in ExpeditionBootstrap() 40 worker_economy_(portdock->get_economy(wwWORKER)) { in ExpeditionBootstrap()
|
H A D | request.cc | 60 economy_(init_target.get_economy(w)), in Request() 129 economy_ = target_.get_economy(type_); in read()
|
H A D | economy_data_packet.cc | 49 other_eco = eco_->owner().get_economy(serial); in read()
|
/dports/games/widelands/widelands-build21/src/wui/ |
H A D | economy_options_window.cc | 156 if (Widelands::Economy* e_wa = player_->get_economy(ware_serial_)) { in ~EconomyOptionsWindow() 159 if (Widelands::Economy* e_wo = player_->get_economy(worker_serial_)) { in ~EconomyOptionsWindow() 186 Widelands::Economy* economy = player_->get_economy(*serial); in on_economy_note() 251 Widelands::Economy* economy = player_->get_economy(serial_); in info_for_ware() 318 Widelands::Economy* economy = player_->get_economy(serial_); in toggle_infinite() 367 Widelands::Economy* economy = player_->get_economy(serial_); in change_target() 435 !player_->get_economy(worker_serial_)) { in think() 444 const Widelands::Economy* eco_ware = player_->get_economy(ware_serial_); in applicable_target() 445 const Widelands::Economy* eco_worker = player_->get_economy(worker_serial_); in applicable_target() 666 Widelands::Economy* ware_economy = player_->get_economy(ware_serial_); in do_create_target() [all …]
|
/dports/games/widelands/widelands-build21/src/map_io/ |
H A D | map_flag_packet.cc | 104 Economy* ware_economy = player->get_economy(ware_economy_serial); in read() 108 Economy* worker_economy = player->get_economy(worker_economy_serial); in read()
|
/dports/games/widelands/widelands-build21/src/logic/map_objects/tribes/ |
H A D | worker.h | 85 Economy* get_economy(WareWorker type) const { in get_economy() function 97 assert(worker_economy_ == location.get_economy(wwWORKER)); in set_location_initially() 99 assert(ware_economy_ == location.get_economy(wwWARE)); in set_location_initially()
|
H A D | warehouse.cc | 618 portdock_->set_economy(get_economy(wwWARE), wwWARE); in init_portdock() 619 portdock_->set_economy(get_economy(wwWORKER), wwWORKER); in init_portdock() 625 if (get_economy(wwWARE) != nullptr) { in init_portdock() 626 portdock_->set_economy(get_economy(wwWARE), wwWARE); in init_portdock() 628 if (get_economy(wwWORKER) != nullptr) { in init_portdock() 629 portdock_->set_economy(get_economy(wwWORKER), wwWORKER); in init_portdock() 796 Economy* const old = get_economy(type); in set_economy()
|
H A D | ship.cc | 975 assert(get_economy(wwWARE) && get_economy(wwWARE) != expedition_->ware_economy); in exp_cancel() 976 assert(get_economy(wwWORKER) && get_economy(wwWORKER) != expedition_->worker_economy); in exp_cancel() 1231 ship.ware_economy_ = ship.get_owner()->get_economy(ware_economy_serial_); in load_finish() 1237 ship.worker_economy_ = ship.get_owner()->get_economy(worker_economy_serial_); in load_finish()
|
H A D | partially_finished_building.cc | 91 if (Economy* const old = get_economy(type)) { in set_economy()
|
H A D | worker.cc | 1133 molog("* WorkerEconomy: %p\n", loc->get_economy(wwWORKER)); in log_general_info() 1134 molog("* WareEconomy: %p\n", loc->get_economy(wwWARE)); in log_general_info() 1149 molog("* carried_ware->get_economy() (): %p\n", ware->get_economy()); in log_general_info() 1187 Economy* const eco_wo = location->get_economy(wwWORKER); in set_location() 1188 Economy* const eco_wa = location->get_economy(wwWARE); in set_location() 1222 Economy* old = get_economy(type); in set_economy() 1410 if (get_economy(wwWORKER)->warehouses().size() || in init_auto_task() 2093 if (!get_economy(wwWORKER)->warehouses().size()) { in gowarehouse_update() 3203 worker.set_economy(location->get_economy(wwWARE), wwWARE); in load_finish() 3204 worker.set_economy(location->get_economy(wwWORKER), wwWORKER); in load_finish()
|
H A D | ship.h | 105 Economy* get_economy(WareWorker type) const { in get_economy() function
|
H A D | productionsite.cc | 524 if (Economy* const old = get_economy(type)) { in set_economy() 819 get_economy(wwWARE)->rebalance_supply(); in set_stopped() 820 get_economy(wwWORKER)->rebalance_supply(); in set_stopped()
|