File: map.hh

package info (click to toggle)
roleplaying 2.0-8
  • links: PTS
  • area: main
  • in suites: woody
  • size: 16,620 kB
  • ctags: 1,039
  • sloc: tcl: 7,155; cpp: 2,709; ansic: 2,227; makefile: 559; sh: 330; csh: 3
file content (84 lines) | stat: -rw-r--r-- 3,247 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
#* 
#* ------------------------------------------------------------------
#* Role PlayingDB V2.0 by Deepwoods Software
#* ------------------------------------------------------------------
#* map.hh - Map GUI
#* Created by Robert Heller on Mon Apr 19 16:23:10 1999
#* ------------------------------------------------------------------
#* Modification History: 
#* $Log: map.hh,v $
#* Revision 1.2  1999/07/14 22:21:33  heller
#* Eddy's Edits.
#*
#* Revision 1.1  1999/04/20 13:24:36  heller
#* Initial revision
#*
#* ------------------------------------------------------------------
#* Contents:
#* ------------------------------------------------------------------
#*  
#*     Role Playing DB -- A database package that creates and maintains
#* 		       a database of RPG characters, monsters, treasures,
#* 		       spells, and playing environments.
#* 
#*     Copyright (C) 1995,1998,1999  Robert Heller D/B/A Deepwoods Software
#* 			51 Locke Hill Road
#* 			Wendell, MA 01379-9728
#* 
#*     This program is free software; you can redistribute it and/or modify
#*     it under the terms of the GNU General Public License as published by
#*     the Free Software Foundation; either version 2 of the License, or
#*     (at your option) any later version.
#* 
#*     This program is distributed in the hope that it will be useful,
#*     but WITHOUT ANY WARRANTY; without even the implied warranty of
#*     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#*     GNU General Public License for more details.
#* 
#*     You should have received a copy of the GNU General Public License
#*     along with this program; if not, write to the Free Software
#*     Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
#* 
#*  
#* 
#* $Id: map.hh,v 1.2 1999/07/14 22:21:33 heller Rel1 $
0 Map Editor GUI Window

Map files contain information about the geographical environment in which
the role playing game takes place.  A map can have a number of levels,
each of which can have a number of spaces.  The spaces can be either
squares or hexagons.  All of the spaces in a given map must be the same
shape.  

Sections:

  <Create Map Dialog>
  <Map Editor GUI Window itself>

1 Create Map Dialog

When a new map is created, a Create Map Dialog appears as shown
below.  This dialog box contains an entry for the name of the map,
buttons to select the shape of the spaces, a text entry area for the
descriptive commentary of the map, and entries for the X and Y extents
of the map.

{CreateMap.ppm}

1 Map Editor GUI Window itself

The Map Editor GUI Window, shown below, contains a window showing the
spaces on the current level, an entry for the map's name, a scale
indicating the current level, a text area for the map's descriptive
commentary, and buttons for creating and deleting spaces.

{Map.ppm}

The spaces in the window showing the spaces are sensitive to mouse
clicks.  One click selects the space, which outlines the space in red
and displays the space's name next to the [Space] [Delete] button.  
This button can be used to delete the space.  Two clicks pops up the
<Space Data Object Editor GUI Window>.  A new space can be added with
the [New] space button.  This button brings up the <Create New Space> dialog box.