#include <PalmOS.h>
#include <Window.h>
#include <Rect.h>
#include <Progress.h>
#include <simcity.h>
#include <simcity_resconsts.h>
#include <locking.h>
#include <logging.h>
#include <ui.h>
#include <map.h>
#include <globals.h>
#include <drawing.h>
#include <resCompat.h>
#include <palmutils.h>
#include <sections.h>
Go to the source code of this file.
Data Structures | |
struct | scr_map |
Map structure for the various maps to be displayed. More... | |
Typedefs | |
typedef enum e_map_type | map_type |
map type s | |
typedef enum e_map_entries | map_entry |
map entries | |
typedef scr_map | scr_map_t |
Map structure for the various maps to be displayed. | |
Enumerations | |
enum | e_map_type { , mt_overlay } |
map type s More... | |
enum | e_map_entries { me_basemap = 0, me_end } |
map entries More... | |
Functions | |
void | DrawMap (void) MAP_SECTION |
draw the active map | |
void | RenderMaps (void) MAP_SECTION |
Render the Maps onto the offscreen. | |
void | freemaps (void) MAP_SECTION |
release the map structures | |
void | AddMap (WinHandle handle, map_type type, map_entry code) MAP_SECTION |
add a map to the list of maps | |
Boolean | hMap (EventPtr event) |
Handler for the map. | |
void | UIUpdateMap (UInt16 xpos, UInt16 ypos) |
update a map location | |
void | UIMapResize (void) |
map being resized, do UI related elements | |
void | UIPaintMapStatus (UInt16 xpos, UInt16 ypos, welem_t world, selem_t status) |
update a map status position | |
void | UIPaintMapField (UInt16 xpos, UInt16 ypos, welem_t world) |
update an individual position on the map | |
Variables | |
map_entry | currmap |
current map | |
scr_map_t * | themaps |
the map structures ... it's a cheap ass array. 0 .. me_end-1 |
Performs the rendering of the individual maps on the screen. The only functional map is the general area.
Definition in file map.c.
|
map entries
|
|
map type s
|
|
add a map to the list of maps
Definition at line 64 of file map.c. References scr_map::handle, map_entry, map_type, me_end, and scr_map::type. Referenced by RenderMaps(). |
|
Handler for the map. Deals witht he pen clicks and setup/teardown for the map Definition at line 93 of file map.c. References DrawMap(), formID_pocketCity, freemaps(), getMapHeight, getMapWidth, Goto(), RenderMaps(), UIGotoForm(), and UInt16. |
|
map being resized, do UI related elements The resizing of the map corresponds to recreating the backing map area as well as the backing play area. |
|
update an individual position on the map this would consist of painting it's location, as well as the power and water items for that location. It is the map version of UIDrawField.
|
|
update a map status position
|
|
update a map location Caused when the content on the map changes
Definition at line 353 of file map.c. References UInt16. |