SSBM Decomp
Loading...
Searching...
No Matches
Ground Struct Reference

#include <types.h>

Data Fields

int x0
 
HSD_GObjgobj
 
HSD_GObjEvent x8_callback
 
HSD_GObjEvent xC_callback
 
struct { 
 
   u8   b0: 1 
 
   u8   b1: 1 
 
   u8   b2: 1 
 
   u8   b3: 1 
 
   u8   b4: 1 
 
   u8   b5: 1 
 
   u8   b6: 1 
 
   u8   b7: 1 
 
x10_flags 
 
struct { 
 
   u8   b012: 3 
 
   u8   b3: 1 
 
   u8   b4: 1 
 
   u8   b5: 1 
 
   u8   b6: 1 
 
   u8   b7: 1 
 
x11_flags 
 
InternalStageId map_id
 
HSD_GObjx18
 
HSD_GObjEvent x1C_callback
 
int x20 [8]
 
Vec3 self_vel
 
Vec3 cur_pos
 
int x58
 
int x5C
 
int x60
 
int x64
 
int x68
 
int x6C
 
int x70
 
char pad_40 [0xC4 - 0x74]
 
union { 
 
   union GroundVars
 
      char   pad_0 [0x204 - 0xC4] 
 
      struct grBigBlue_GroundVars   bigblue 
 
      struct grCorneria_GroundVars   corneria 
 
      struct GroundVars_flatzone   flatzone 
 
      struct GroundVars_flatzone2   flatzone2 
 
      struct grFourside_GroundVars   fourside 
 
      struct grIceMt_GroundVars   icemt 
 
      struct grIceMt_GroundVars2   icemt2 
 
      struct grInishie1_GroundVars   inishie1 
 
      struct grInishie1_GroundVars2   inishie12 
 
      struct grInishie1_GroundVars3   inishie13 
 
      struct grInishie2_GroundVars   inishie2 
 
      struct grInishie2_GroundVars2   inishie22 
 
      struct grInishie2_GroundVars3   inishie23 
 
      struct GroundVars_izumi   izumi 
 
      struct GroundVars_izumi2   izumi2 
 
      struct GroundVars_izumi3   izumi3 
 
      struct grKongo_GroundVars   kongo 
 
      struct grKongo_GroundVars2   kongo2 
 
      struct grKongo_GroundVars3   kongo3 
 
      struct grKraid_GroundVars   kraid 
 
      struct grOnett_GroundVars   onett 
 
      struct grPura_GroundVars   pura 
 
      struct grPura_GroundVars2   pura2 
 
      struct GroundVars_unk   unk 
 
      struct grYorster_GroundVars   yorster 
 
      struct grZebes_GroundVars   zebes 
 
   }   gv 
 
   union { 
 
      struct grStadium_GroundVars   stadium 
 
      struct grStadium_type9_GroundVars   stadium9 
 
      struct grStadium_Display   display 
 Pokemon Stadium jumbotron. More...
 
      struct Randall   randall 
 
      struct ShyGuys   shyguys 
 
      struct Battlefield   battle 
 
      struct Last_GroundVars   last 
 
      struct Map_GroundVars   map 
 
   }   u 
 Union of Ground object subtypes. More...
 
};  
 

Field Documentation

◆ x0

int Ground::x0

◆ gobj

HSD_GObj* Ground::gobj

◆ x8_callback

HSD_GObjEvent Ground::x8_callback

◆ xC_callback

HSD_GObjEvent Ground::xC_callback

◆ b0

u8 Ground::b0

◆ b1

u8 Ground::b1

◆ b2

u8 Ground::b2

◆ b3

u8 Ground::b3

◆ b4

u8 Ground::b4

◆ b5

u8 Ground::b5

◆ b6

u8 Ground::b6

◆ b7

u8 Ground::b7

◆ [struct]

struct { ... } Ground::x10_flags

◆ b012

u8 Ground::b012

◆ [struct]

struct { ... } Ground::x11_flags

◆ map_id

InternalStageId Ground::map_id

◆ x18

HSD_GObj* Ground::x18

◆ x1C_callback

HSD_GObjEvent Ground::x1C_callback

◆ x20

int Ground::x20[8]

◆ self_vel

Vec3 Ground::self_vel

◆ cur_pos

Vec3 Ground::cur_pos

◆ x58

int Ground::x58

◆ x5C

int Ground::x5C

◆ x60

int Ground::x60

◆ x64

int Ground::x64

◆ x68

int Ground::x68

◆ x6C

int Ground::x6C

◆ x70

int Ground::x70

◆ pad_40

char Ground::pad_40[0xC4 - 0x74]

◆ pad_0

char Ground::pad_0[0x204 - 0xC4]

◆ bigblue

struct grBigBlue_GroundVars Ground::bigblue

◆ corneria

struct grCorneria_GroundVars Ground::corneria

◆ flatzone

struct GroundVars_flatzone Ground::flatzone

◆ flatzone2

struct GroundVars_flatzone2 Ground::flatzone2

◆ fourside

struct grFourside_GroundVars Ground::fourside

◆ icemt

struct grIceMt_GroundVars Ground::icemt

◆ icemt2

struct grIceMt_GroundVars2 Ground::icemt2

◆ inishie1

struct grInishie1_GroundVars Ground::inishie1

◆ inishie12

struct grInishie1_GroundVars2 Ground::inishie12

◆ inishie13

struct grInishie1_GroundVars3 Ground::inishie13

◆ inishie2

struct grInishie2_GroundVars Ground::inishie2

◆ inishie22

struct grInishie2_GroundVars2 Ground::inishie22

◆ inishie23

struct grInishie2_GroundVars3 Ground::inishie23

◆ izumi

struct GroundVars_izumi Ground::izumi

◆ izumi2

struct GroundVars_izumi2 Ground::izumi2

◆ izumi3

struct GroundVars_izumi3 Ground::izumi3

◆ kongo

struct grKongo_GroundVars Ground::kongo

◆ kongo2

struct grKongo_GroundVars2 Ground::kongo2

◆ kongo3

struct grKongo_GroundVars3 Ground::kongo3

◆ kraid

struct grKraid_GroundVars Ground::kraid

◆ onett

struct grOnett_GroundVars Ground::onett

◆ pura

struct grPura_GroundVars Ground::pura

◆ pura2

struct grPura_GroundVars2 Ground::pura2

◆ unk

struct GroundVars_unk Ground::unk

◆ yorster

struct grYorster_GroundVars Ground::yorster

◆ zebes

struct grZebes_GroundVars Ground::zebes

◆ [union]

union { ... } ::GroundVars Ground::gv

◆ stadium

struct grStadium_GroundVars Ground::stadium

◆ stadium9

struct grStadium_type9_GroundVars Ground::stadium9

◆ display

struct grStadium_Display Ground::display

Pokemon Stadium jumbotron.

◆ randall

struct Randall Ground::randall

◆ shyguys

struct ShyGuys Ground::shyguys

◆ battle

struct Battlefield Ground::battle

◆ last

struct Last_GroundVars Ground::last

◆ map

struct Map_GroundVars Ground::map

◆ [union]

union { ... } Ground::u

Union of Ground object subtypes.

A Ground object can be one of multiple subtypes. The toplevel Ground object for the stage itself is a generic type, but uses different subtypes for various stage hazards, graphics effects, backgrounds, etc. used by the stage.

Each index in a stage's StageCallbacks array may use a different subtype of Ground object - but each callback in a single StageCallbacks struct should operate on the same subtype.

This is known from assert statements to contain at least the following members:

  • map
    • A generic member used for multiple stages - used in in Onett, RCruise, Home Run Contest, and more. Grep for gp->u.map to see lots of assert statements using it.
  • scroll
    • Used for Rainbow Cruise
  • taru
    • "Barrel", used in Kongo Jungle
  • car, carnull

    • Used in Big Blue
    Todo:
    The previous Ground.gv union members should be moved here.

◆ [union]

union { ... } Ground

The documentation for this struct was generated from the following file: