DCDecomp
A decompilation of Dark Cloud for the PlayStation 2
Loading...
Searching...
No Matches
dungeonmap.hpp File Reference

Go to the source code of this file.

Classes

struct  MAPPARTS
 
struct  ROOM_INFO
 
struct  TREASURE_BOX
 
struct  ATRA_BOLL
 
struct  MAP_TRAP_CIRCLE
 
struct  ROOM_LINK_RESULT
 
struct  DUNGEON_EVENT
 
struct  MAP_NPC_MODEL
 
class  CDungeonMap
 

Typedefs

typedef MAPPARTS MAP_CELL
 

Enumerations

enum  DungeonEventKind { DNG_EVENT_NONE = -1 , DNG_EVENT_TREASURE_BOX = 2 , DNG_EVENT_ATRA = 3 , DNG_EVENT_MIMIC = 8 }
 
enum  TrapCircleKind {
  TRAP_CIRCLE_STAMINA = 0 , TRAP_CIRCLE_MONEY_UP = 1 , TRAP_CIRCLE_ABS_FULL = 2 , TRAP_CIRCLE_WHP_UP = 3 ,
  TRAP_CIRCLE_WHP_CURE = 4 , TRAP_CIRCLE_ALL_MONSTER_STAMINA = 5 , TRAP_CIRCLE_MONEY_DOWN = 6 , TRAP_CIRCLE_STAT_DOWN = 7 ,
  TRAP_CIRCLE_WHP_DOWN = 8 , TRAP_CIRCLE_WHP_QUARTER = 9 , TRAP_CIRCLE_COUNT = 10
}
 
enum  TreasureBoxKind { TREASURE_BOX_LARGE = 0 , TREASURE_BOX_SMALL = 1 }
 
enum  MapDirection { MAP_DIR_NORTH = 1 , MAP_DIR_EAST = 2 , MAP_DIR_WEST = 4 , MAP_DIR_SOUTH = 8 }
 

Functions

void mapPartsFilter ()
 
 STATIC_ASSERT (sizeof(MAP_CELL)==0x10)
 
 STATIC_ASSERT (sizeof(ROOM_INFO)==0x10)
 
 STATIC_ASSERT (sizeof(TREASURE_BOX)==0x40)
 
 STATIC_ASSERT (sizeof(ATRA_BOLL)==0x20)
 
 STATIC_ASSERT (sizeof(MAP_TRAP_CIRCLE)==0x20)
 
 STATIC_ASSERT (sizeof(ROOM_LINK_RESULT)==0x18)
 
 STATIC_ASSERT (sizeof(DUNGEON_EVENT)==0x50)
 
 STATIC_ASSERT (sizeof(MAP_NPC_MODEL)==0x1330)
 
 STATIC_ASSERT (sizeof(CDungeonMap)==0x10B10)
 

Detailed Description

Declares the dungeon map and the objects that it holds.

Definition in file dungeonmap.hpp.

Typedef Documentation

◆ MAP_CELL

typedef MAPPARTS MAP_CELL

Definition at line 91 of file dungeonmap.hpp.

Enumeration Type Documentation

◆ DungeonEventKind

Kinds of dungeon event, as DUNGEON_EVENT::kind holds them.

Enumerator
DNG_EVENT_NONE 

Free.

DNG_EVENT_TREASURE_BOX 

Treasure box.

DNG_EVENT_ATRA 

Atla ball.

DNG_EVENT_MIMIC 

Mimic.

Definition at line 18 of file dungeonmap.hpp.

◆ TrapCircleKind

Effects of a dungeon magic circle, as MAP_TRAP_CIRCLE::kind holds them.

Enumerator
TRAP_CIRCLE_STAMINA 

Gives the player stamina.

TRAP_CIRCLE_MONEY_UP 

Raises the player's money.

TRAP_CIRCLE_ABS_FULL 

Fills the weapon's ABS.

TRAP_CIRCLE_WHP_UP 

Raises the weapon's maximum WHp.

TRAP_CIRCLE_WHP_CURE 

Restores the weapon's WHp.

TRAP_CIRCLE_ALL_MONSTER_STAMINA 

Gives every monster stamina.

TRAP_CIRCLE_MONEY_DOWN 

Lowers the player's money.

TRAP_CIRCLE_STAT_DOWN 

Lowers a random weapon stat.

TRAP_CIRCLE_WHP_DOWN 

Lowers the weapon's maximum WHp.

TRAP_CIRCLE_WHP_QUARTER 

Quarters the weapon's WHp.

TRAP_CIRCLE_COUNT 

Number of effects.

Definition at line 31 of file dungeonmap.hpp.

◆ TreasureBoxKind

Kinds of treasure box, as TREASURE_BOX::kind holds them.

Enumerator
TREASURE_BOX_LARGE 

Large box.

TREASURE_BOX_SMALL 

Small box.

Definition at line 51 of file dungeonmap.hpp.

◆ MapDirection

Directions out of a dungeon room, as bits.

Enumerator
MAP_DIR_NORTH 

North.

MAP_DIR_EAST 

East.

MAP_DIR_WEST 

West.

MAP_DIR_SOUTH 

South.

Definition at line 62 of file dungeonmap.hpp.

Function Documentation

◆ mapPartsFilter()

void mapPartsFilter ( )

Turns the grid that the builder worked on into the map parts that draw it.

Mangled name:
mapPartsFilter__Fv
Address:
0x1C5550
Size:
0xBDC

Converts the builder flags and adjacency data into drawable map parts.

Definition at line 1402 of file dungeonmap.cpp.