]> git.llucax.com Git - z.facultad/75.42/plaqui.git/blob - Client/src/item_tank.cpp
Se mejora el codo (para que el color siga la curva).
[z.facultad/75.42/plaqui.git] / Client / src / item_tank.cpp
1
2 #include "item_tank.h"
3 #include <sstream>
4
5 ViewTank::ViewTank(Glib::ustring _name, int orientacion):ViewItem(_name)
6 {
7         switch (orientacion) {
8                 case 0:
9                         image.set(PACKAGE_DATA_DIR"/plaqui-client/pixmaps/tanque_e.png");
10                 break;
11                 case 1:
12                         image.set(PACKAGE_DATA_DIR"/plaqui-client/pixmaps/tanque_o.png");
13         }
14         image.show();
15         set_size_request();
16 }
17
18 ViewTank::~ViewTank()
19 {
20 }
21
22 std::string ViewTank::get_extra()
23 {
24         std::stringstream ss;
25         std::string s;
26         ss << extra;
27         ss >> s;
28         return s;
29 }
30