|
DCDecomp
A decompilation of Dark Cloud for the PlayStation 2
|
#include <dungeonmap.hpp>
Public Member Functions | |
| void | SetNPC (int npc_no, unsigned int *pack, int parts_no, sceVu0FVECTOR pos, sceVu0FVECTOR rot, int visible, int motion_no, CDataAlloc2< 1 > *alloc) |
| void | ClearNPC_Cash () |
| void | ReservNPC_Draw (int npc_no, float x, float y, float z, int direction) |
| void | DrawNPCDraw () |
| void | StepNPC () |
| void | NPCSetMotion (int npc_no, int motion_no) |
| void | NPCSetMotion (int npc_no, int motion_no, float speed, int motion_flags) |
| CFrame * | GetFrameSearch (char *name) |
| void | DrawMapFreeStyle () |
| void | DrawMapCalc (int mode) |
| void | DrawMap (CCameraFollow *camera, CFrameVu1 *player) |
| void | DrawBGModel (CCamera *camera) |
| void | DrawDummyModel (CCamera *camera) |
| void | DrawMiniMap (float *pos, float angle) |
| void | checkMask (float x, float z) |
| void | FlushCheckMask () |
| void | DrawFireFreeStyle (CFrameVu1 *frame, CCameraFollow *camera) |
| void | DrawFire (CFrameVu1 *frame, CCameraFollow *camera) |
| void | DrawRaster (CFrameVu1 *frame) |
| void | DrawWater (float *pos, int mute) |
| void | DrawItemBox (float *pos) |
| void | DrawAtraBoll (float *pos) |
| int | CreateCollision (CCPoly *poly, CBoxVu0 box, int num) |
| void | initTrapCircle () |
| float * | CheckTrapCircle (float *pos, float dist) |
| void | SetupTrapCircle (float *pos) |
| void | DrawTrapCircle () |
| MAP_TRAP_CIRCLE * | DistTrapCircle () |
| void | StepTrapCircle () |
| int | CheckTreasureBox (float *pos, float dist) |
| int | CheckAtra (float *pos, float dist) |
| void | SetAtraBoll (float *pos, int atra_no) |
| int | SetTreasureBox (float *pos, int item_no, int kind, int trap_no) |
| void | buildEventData (int floor_no, int enabled, int place_atla) |
| void | SetMimicEvent (float x, float y, float z, int item_no, int kind) |
| void | RsetMimicEvent () |
| int | GetActiveIvent (CFrameVu1 *frame) |
| void | buildDummyModel () |
| void | GetRoomLinkInfo () |
| void | SetUnderLoad () |
| int | CreatPartsList (int *list, int max, int first_part, int last_part) |
| void | BuildCharaSpecialParts () |
| int | SetCharaDoor (int chara_no) |
| void | buildRandomMap (int room_max, int first_build) |
| void | initSubmap (CDataAlloc2< 1 > *alloc) |
| void | initalize () |
Public Attributes | |
| s32 | unk_0000 |
| s32 | unk_0004 |
| s32 | room_seen [16] |
| CFireOmni | fire |
| CWater | water |
| float | draw_dist_scale |
| s32 | bg_model_num |
| s32 | dummy_frame_num |
| sceVu0FVECTOR | dummy_pos [8] |
| s32 | dummy_model [8] |
| s32 | dummy_num |
| s32 | gate_key_no |
| s32 | map_seed |
| CFrame * | dummy_frame [3] |
| CFrame * | bg_model [6] |
| CDungeonParts | parts [72] |
| s32 | mask [400] |
| DUNGEON_EVENT | events [48] |
| MAP_CELL | cells [400] |
| ROOM_INFO | rooms [16] |
| s32 | room_num |
| TREASURE_BOX | boxes [24] |
| s32 | box_num |
| CFrame * | box_lid_model |
| CFrame * | box_body_model |
| CFrame * | box_collision_model |
| CFrame * | chest_lid_model |
| CFrame * | chest_body_model |
| CFrame * | chest_collision_model |
| CFrame * | fall_model |
| ATRA_BOLL | atra [8] |
| s32 | atra_num |
| CFrame * | atra_model |
| CFrame * | collision_model |
| ROOM_LINK_RESULT | room_link [4] |
| s32 | map_type |
| MAP_NPC_MODEL | npc [4] |
| MAP_TRAP_CIRCLE | trap_circle [3] |
Builds, steps and draws one dungeon floor, and everything that stands on it.
Definition at line 198 of file dungeonmap.hpp.
| void CDungeonMap::SetNPC | ( | int | npc_no, |
| unsigned int * | pack, | ||
| int | parts_no, | ||
| sceVu0FVECTOR | pos, | ||
| sceVu0FVECTOR | rot, | ||
| int | visible, | ||
| int | motion_no, | ||
| CDataAlloc2< 1 > * | alloc | ||
| ) |
Puts one non-player character on the floor.
Definition at line 130 of file dungeonmap.cpp.
| void CDungeonMap::ClearNPC_Cash | ( | ) |
Sets the number of copies to draw of every character to zero.
Definition at line 170 of file dungeonmap.cpp.
| void CDungeonMap::ReservNPC_Draw | ( | int | npc_no, |
| float | x, | ||
| float | y, | ||
| float | z, | ||
| int | direction | ||
| ) |
Adds one copy of a character to the list of copies to draw.
Definition at line 176 of file dungeonmap.cpp.
| void CDungeonMap::DrawNPCDraw | ( | ) |
Definition at line 186 of file dungeonmap.cpp.
| void CDungeonMap::StepNPC | ( | ) |
Takes one step with every character that is active and visible.
Definition at line 241 of file dungeonmap.cpp.
| void CDungeonMap::NPCSetMotion | ( | int | npc_no, |
| int | motion_no | ||
| ) |
Starts a motion on a character.
Definition at line 249 of file dungeonmap.cpp.
| void CDungeonMap::NPCSetMotion | ( | int | npc_no, |
| int | motion_no, | ||
| float | speed, | ||
| int | motion_flags | ||
| ) |
Starts a motion on a character at a given speed.
Definition at line 255 of file dungeonmap.cpp.
| CFrame * CDungeonMap::GetFrameSearch | ( | char * | name | ) |
Returns the frame with the given name from the map parts, or zero if no part holds it.
Definition at line 265 of file dungeonmap.cpp.
| void CDungeonMap::DrawMapFreeStyle | ( | ) |
Draws every map part at the origin, and reserves a copy of each character that stands on one.
Definition at line 277 of file dungeonmap.cpp.
| void CDungeonMap::DrawMapCalc | ( | int | mode | ) |
Definition at line 299 of file dungeonmap.cpp.
| void CDungeonMap::DrawMap | ( | CCameraFollow * | camera, |
| CFrameVu1 * | player | ||
| ) |
Draws the floor's rooms and corridors.
Definition at line 331 of file dungeonmap.cpp.
| void CDungeonMap::DrawBGModel | ( | CCamera * | camera | ) |
Draws the background models at the position of the camera.
Definition at line 561 of file dungeonmap.cpp.
| void CDungeonMap::DrawDummyModel | ( | CCamera * | camera | ) |
Draws every dummy model that the camera is near enough to.
Definition at line 576 of file dungeonmap.cpp.
| void CDungeonMap::DrawMiniMap | ( | float * | pos, |
| float | angle | ||
| ) |
Draws the corner map of the floor.
Definition at line 596 of file dungeonmap.cpp.
| void CDungeonMap::checkMask | ( | float | x, |
| float | z | ||
| ) |
Marks the cell at a position, and the room that holds it, as found.
Definition at line 789 of file dungeonmap.cpp.
| void CDungeonMap::FlushCheckMask | ( | ) |
Hides every cell of the mini map, then shows the cells that hold a stair.
Definition at line 828 of file dungeonmap.cpp.
| void CDungeonMap::DrawFireFreeStyle | ( | CFrameVu1 * | frame, |
| CCameraFollow * | camera | ||
| ) |
Draws the floor's freely placed fires.
Draws free-style fires and updates the sound for the nearest active fire.
Definition at line 851 of file dungeonmap.cpp.
| void CDungeonMap::DrawFire | ( | CFrameVu1 * | frame, |
| CCameraFollow * | camera | ||
| ) |
Draws the fires standing on the floor's parts.
Definition at line 937 of file dungeonmap.cpp.
| void CDungeonMap::DrawRaster | ( | CFrameVu1 * | frame | ) |
Draws the light the floor's fires cast on the ground.
Definition at line 1047 of file dungeonmap.cpp.
| void CDungeonMap::DrawWater | ( | float * | pos, |
| int | mute | ||
| ) |
Draws the water surface nearest to a position, with its waterfall, and sets the volume of the water sound.
Definition at line 1108 of file dungeonmap.cpp.
| void CDungeonMap::DrawItemBox | ( | float * | pos | ) |
Draws the floor's treasure chests.
Definition at line 1252 of file dungeonmap.cpp.
| void CDungeonMap::DrawAtraBoll | ( | float * | pos | ) |
Draws every atla ball that the camera is near enough to, bobbing on the spot.
Definition at line 1302 of file dungeonmap.cpp.
Adds a collision polygon for every atla ball near the player, and returns the new total.
Definition at line 1329 of file dungeonmap.cpp.
| void CDungeonMap::initTrapCircle | ( | ) |
Sets every trap circle slot to free.
Definition at line 2192 of file dungeonmap.cpp.
| float * CDungeonMap::CheckTrapCircle | ( | float * | pos, |
| float | dist | ||
| ) |
Returns the trap circle that is nearer to a position than a distance, or zero if there is none.
Definition at line 2198 of file dungeonmap.cpp.
| void CDungeonMap::SetupTrapCircle | ( | float * | pos | ) |
Puts a trap circle of a random kind in the first free slot at a position.
Definition at line 2210 of file dungeonmap.cpp.
| void CDungeonMap::DrawTrapCircle | ( | ) |
Definition at line 2230 of file dungeonmap.cpp.
| MAP_TRAP_CIRCLE * CDungeonMap::DistTrapCircle | ( | ) |
Starts the fade of the trap circle that the player stands on, and returns its position.
Definition at line 2261 of file dungeonmap.cpp.
| void CDungeonMap::StepTrapCircle | ( | ) |
Moves every trap circle that fades one step further, and frees the ones that finished.
Definition at line 2278 of file dungeonmap.cpp.
| int CDungeonMap::CheckTreasureBox | ( | float * | pos, |
| float | dist | ||
| ) |
Returns 1 if no treasure box is nearer to a position than a distance.
Definition at line 2290 of file dungeonmap.cpp.
| int CDungeonMap::CheckAtra | ( | float * | pos, |
| float | dist | ||
| ) |
Returns 1 if no atla ball is nearer to a position than a distance.
Definition at line 2300 of file dungeonmap.cpp.
| void CDungeonMap::SetAtraBoll | ( | float * | pos, |
| int | atra_no | ||
| ) |
Definition at line 2315 of file dungeonmap.cpp.
| int CDungeonMap::SetTreasureBox | ( | float * | pos, |
| int | item_no, | ||
| int | kind, | ||
| int | trap_no | ||
| ) |
Puts a treasure chest on the floor.
Adds a treasure box to an open slot and creates its matching map event. The event stores the box coordinates and interaction radius.
Definition at line 2347 of file dungeonmap.cpp.
| void CDungeonMap::buildEventData | ( | int | floor_no, |
| int | enabled, | ||
| int | place_atla | ||
| ) |
Lays the floor's events out over its rooms.
Places treasure boxes, trap circles, and atla events on one floor.
Definition at line 2414 of file dungeonmap.cpp.
| void CDungeonMap::SetMimicEvent | ( | float | x, |
| float | y, | ||
| float | z, | ||
| int | item_no, | ||
| int | kind | ||
| ) |
Definition at line 2566 of file dungeonmap.cpp.
| void CDungeonMap::RsetMimicEvent | ( | ) |
Frees every mimic event, and the treasure box that each one shows.
Definition at line 2633 of file dungeonmap.cpp.
| int CDungeonMap::GetActiveIvent | ( | CFrameVu1 * | frame | ) |
Returns the event that the player stands in, or -1 if the player stands in none.
Definition at line 2644 of file dungeonmap.cpp.
| void CDungeonMap::buildDummyModel | ( | ) |
Definition at line 2662 of file dungeonmap.cpp.
| void CDungeonMap::GetRoomLinkInfo | ( | ) |
Gives the table saying which of the floor's rooms join up.
Selects a special door, labels its connected area, and places its key item.
Definition at line 2795 of file dungeonmap.cpp.
| void CDungeonMap::SetUnderLoad | ( | ) |
Puts the part that closes the right edge of the grid in every row.
Definition at line 3049 of file dungeonmap.cpp.
| int CDungeonMap::CreatPartsList | ( | int * | list, |
| int | max, | ||
| int | first_part, | ||
| int | last_part | ||
| ) |
Definition at line 3056 of file dungeonmap.cpp.
| void CDungeonMap::BuildCharaSpecialParts | ( | ) |
Definition at line 3117 of file dungeonmap.cpp.
| int CDungeonMap::SetCharaDoor | ( | int | chara_no | ) |
Definition at line 3355 of file dungeonmap.cpp.
| void CDungeonMap::buildRandomMap | ( | int | room_max, |
| int | first_build | ||
| ) |
Builds a floor: places the rooms, joins them with corridors, fills the grid with map parts and picks the set of parts that the floor draws with.
Definition at line 3439 of file dungeonmap.cpp.
| void CDungeonMap::initSubmap | ( | CDataAlloc2< 1 > * | alloc | ) |
Definition at line 3651 of file dungeonmap.cpp.
| void CDungeonMap::initalize | ( | ) |
Definition at line 3729 of file dungeonmap.cpp.
| s32 CDungeonMap::unk_0000 |
Definition at line 200 of file dungeonmap.hpp.
| s32 CDungeonMap::unk_0004 |
Definition at line 201 of file dungeonmap.hpp.
| s32 CDungeonMap::room_seen[16] |
1 for each room that the player found.
Definition at line 202 of file dungeonmap.hpp.
| CFireOmni CDungeonMap::fire |
Draws the fire and the raster of every map part.
Definition at line 203 of file dungeonmap.hpp.
| CWater CDungeonMap::water |
Draws the water surface.
Definition at line 204 of file dungeonmap.hpp.
| float CDungeonMap::draw_dist_scale |
Scale that the draw distance uses.
Definition at line 205 of file dungeonmap.hpp.
| s32 CDungeonMap::bg_model_num |
Number of background models loaded into bg_model.
Definition at line 206 of file dungeonmap.hpp.
| s32 CDungeonMap::dummy_frame_num |
Number of models loaded into dummy_frame.
Definition at line 207 of file dungeonmap.hpp.
| sceVu0FVECTOR CDungeonMap::dummy_pos[8] |
World position of each dummy model.
Definition at line 208 of file dungeonmap.hpp.
| s32 CDungeonMap::dummy_model[8] |
Index into dummy_frame of each dummy model.
Definition at line 209 of file dungeonmap.hpp.
| s32 CDungeonMap::dummy_num |
Number of dummy models on the floor.
Definition at line 210 of file dungeonmap.hpp.
| s32 CDungeonMap::gate_key_no |
Item number of the key that opens the floor's gate.
Definition at line 211 of file dungeonmap.hpp.
| s32 CDungeonMap::map_seed |
Seed that the floor was built from.
Definition at line 212 of file dungeonmap.hpp.
| CFrame* CDungeonMap::dummy_frame[3] |
Models that a dummy model can draw with.
Definition at line 213 of file dungeonmap.hpp.
| CFrame* CDungeonMap::bg_model[6] |
Models that draw behind the floor.
Definition at line 214 of file dungeonmap.hpp.
| CDungeonParts CDungeonMap::parts[72] |
Map parts that the floor is built from.
Definition at line 215 of file dungeonmap.hpp.
| s32 CDungeonMap::mask[400] |
1 for each grid cell that the mini map shows.
Definition at line 216 of file dungeonmap.hpp.
| DUNGEON_EVENT CDungeonMap::events[48] |
Places that start an event.
Definition at line 217 of file dungeonmap.hpp.
| MAP_CELL CDungeonMap::cells[400] |
20 x 20 grid of the floor.
Definition at line 218 of file dungeonmap.hpp.
| ROOM_INFO CDungeonMap::rooms[16] |
Position and extent of each room.
Definition at line 219 of file dungeonmap.hpp.
| s32 CDungeonMap::room_num |
Number of rooms on the floor.
Definition at line 220 of file dungeonmap.hpp.
| TREASURE_BOX CDungeonMap::boxes[24] |
Treasure boxes that stand on the floor.
Definition at line 221 of file dungeonmap.hpp.
| s32 CDungeonMap::box_num |
Number of treasure boxes on the floor.
Definition at line 222 of file dungeonmap.hpp.
| CFrame* CDungeonMap::box_lid_model |
Model that draws the lid of a wooden treasure box.
Definition at line 223 of file dungeonmap.hpp.
| CFrame* CDungeonMap::box_body_model |
Model that draws a wooden treasure box.
Definition at line 224 of file dungeonmap.hpp.
| CFrame* CDungeonMap::box_collision_model |
Model that the collision of a treasure box uses.
Definition at line 225 of file dungeonmap.hpp.
| CFrame* CDungeonMap::chest_lid_model |
Model that draws the lid of a metal treasure box.
Definition at line 226 of file dungeonmap.hpp.
| CFrame* CDungeonMap::chest_body_model |
Model that draws a metal treasure box.
Definition at line 227 of file dungeonmap.hpp.
| CFrame* CDungeonMap::chest_collision_model |
Model that the collision of a metal treasure box uses.
Definition at line 228 of file dungeonmap.hpp.
| CFrame* CDungeonMap::fall_model |
Model that draws the hole a fallen map part leaves.
Definition at line 229 of file dungeonmap.hpp.
| ATRA_BOLL CDungeonMap::atra[8] |
Atla balls that lie on the floor.
Definition at line 230 of file dungeonmap.hpp.
| s32 CDungeonMap::atra_num |
Number of atla balls on the floor.
Definition at line 231 of file dungeonmap.hpp.
| CFrame* CDungeonMap::atra_model |
Model that draws an atla ball.
Definition at line 232 of file dungeonmap.hpp.
| CFrame* CDungeonMap::collision_model |
Model that the collision of an atla ball uses.
Definition at line 233 of file dungeonmap.hpp.
| ROOM_LINK_RESULT CDungeonMap::room_link[4] |
Rooms that a door and a treasure box link.
Definition at line 234 of file dungeonmap.hpp.
| s32 CDungeonMap::map_type |
1 for a floor laid out on the grid, otherwise a floor of freely placed parts.
Definition at line 235 of file dungeonmap.hpp.
| MAP_NPC_MODEL CDungeonMap::npc[4] |
Characters that walk in the dungeon.
Definition at line 236 of file dungeonmap.hpp.
| MAP_TRAP_CIRCLE CDungeonMap::trap_circle[3] |
Trap circles that lie on the floor.
Definition at line 237 of file dungeonmap.hpp.