~ubuntu-branches/ubuntu/raring/lordsawar/raring

« back to all changes in this revision

Viewing changes to src/editor/editorbigmap.h

  • Committer: Bazaar Package Importer
  • Author(s): Barry deFreese, Barry deFreese, Gonéri Le Bouder
  • Date: 2008-06-17 11:15:26 UTC
  • mfrom: (1.1.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20080617111526-yjyvu9df50zmpdo0
Tags: 0.0.9-1
[ Barry deFreese ]
* New upstream release.
  + Fixes gcc-4.3 builds so drop ftbfs_gcc-4.3_fix.diff.
  + Add new build-dependency for libgnet-dev.
* Add simple man page for new lordsawar-tile-editor.
* Add desktop file for lordsawar-tile-editor.
* Remove French translation on install.

[ Gonéri Le Bouder ]
* bump Debian Policy to 3.8.0. No change needed.
* fix wording in the 0.0.8-3 entry of the Debian changelog

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
//  Copyright (C) 2007, Ole Laursen
 
2
//  Copyright (C) 2007, 2008 Ben Asselstine
 
3
//
1
4
//  This program is free software; you can redistribute it and/or modify
2
5
//  it under the terms of the GNU General Public License as published by
3
6
//  the Free Software Foundation; either version 2 of the License, or
10
13
//
11
14
//  You should have received a copy of the GNU General Public License
12
15
//  along with this program; if not, write to the Free Software
13
 
//  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 
16
//  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 
 
17
//  02110-1301, USA.
14
18
 
15
19
#ifndef EDITORBIGMAP_H
16
20
#define EDITORBIGMAP_H
32
36
class Ruin;
33
37
class Signpost;
34
38
class Temple;
35
 
class Object;
36
 
 
37
 
 
38
 
/** Specialization of BigMap for the editor
39
 
  */
 
39
class UniquelyIdentified;
 
40
 
 
41
 
 
42
//! Scenario editor.  Specializatoin of the BigMap class for the editor.
40
43
class EditorBigMap: public BigMap
41
44
{
42
45
 public:
56
59
    void mouse_leave_event();
57
60
 
58
61
    // something was selected
59
 
    typedef std::vector<Object *> map_selection_seq;
 
62
    typedef std::vector<UniquelyIdentified *> map_selection_seq;
60
63
    sigc::signal<void, map_selection_seq> objects_selected;
61
64
 
62
65
    // emitted whenever the user moves the mouse to a new tile
84
87
    int tile_to_bridge_type(Vector<int> tile);
85
88
    void change_map_under_cursor();
86
89
    std::vector<Vector<int> > get_cursor_tiles();
 
90
    int calculateRoadType (Vector<int> t);
87
91
};
88
92
 
89
93
#endif