X-Git-Url: https://git.llucax.com/z.facultad/75.42/plaqui.git/blobdiff_plain/43fc1b3f57852f2af098fa7411e83220015aaa6f..a0d48c665de2a880c7587063ea7d9bc8959430d0:/Client/src/item_tank.cpp?ds=sidebyside diff --git a/Client/src/item_tank.cpp b/Client/src/item_tank.cpp index 88b8eda..28cd576 100644 --- a/Client/src/item_tank.cpp +++ b/Client/src/item_tank.cpp @@ -1,14 +1,31 @@ #include "item_tank.h" +#include ViewTank::ViewTank(Glib::ustring _name, int orientacion):ViewItem(_name) { switch (orientacion) { case 0: - image.set("tanque_e.png"); + image.set(PACKAGE_DATA_DIR"/plaqui-client/pixmaps/tanque_e.png"); + in_x = 5; + in_y = 16; + out_x = 64-16; + out_y = 64; + offset_x = 0; + offset_y = 0; + item_offset_x = 0; + item_offset_y = 0; break; case 1: - image.set("tanque_o.png"); + image.set(PACKAGE_DATA_DIR"/plaqui-client/pixmaps/tanque_o.png"); + in_x = 64-5; + in_y = 16; + out_x = 16; + out_y = 64; + offset_x = 0; + offset_y = 0; + item_offset_x = 0; + item_offset_y = 0; } image.show(); set_size_request(); @@ -18,3 +35,12 @@ ViewTank::~ViewTank() { } +std::string ViewTank::get_extra() +{ + std::stringstream ss; + std::string s; + ss << extra; + ss >> s; + return s; +} +