~ubuntu-branches/ubuntu/maverick/btanks/maverick

« back to all changes in this revision

Viewing changes to engine/menu/label.h

  • Committer: Bazaar Package Importer
  • Author(s): Ansgar Burchardt
  • Date: 2010-01-17 00:02:57 UTC
  • mfrom: (4.2.2 squeeze)
  • Revision ID: james.westby@ubuntu.com-20100117000257-iw6esnvsz1rvp6kb
Tags: 0.9.8083-2
* Fix build failure when building only arch-specific package.
* debian/control: Add DM-Upload-Allowed: yes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
#define BTANKS_MENU_LABEL_H__
3
3
 
4
4
/* Battle Tanks Game
5
 
 * Copyright (C) 2006-2008 Battle Tanks team
 
5
 * Copyright (C) 2006-2009 Battle Tanks team
6
6
 *
7
7
 * This program is free software; you can redistribute it and/or
8
8
 * modify it under the terms of the GNU General Public License
46
46
        virtual void tick(const float dt);
47
47
 
48
48
        void set(const std::string &label);
 
49
        void set(const std::string &base, const std::string &id);
49
50
        const std::string get() const;
50
51
        
51
52
        void setFont(const std::string &font);
55
56
private: 
56
57
        const sdlx::Font * _font;
57
58
        std::string _label;
58
 
        int _label_size, _max_width, _max_height;
 
59
        mutable int _label_w, _label_h;
 
60
        int _max_width, _max_height;
59
61
        float x_pos, x_vel;
60
62
};
61
63