resonance 1.0.1
Loading...
Searching...
No Matches
PowerupCollection::PowCount Class Reference

One configured kind, with the number of them stored. More...

#include <powerupcollection.h>

Collaboration diagram for PowerupCollection::PowCount:

Public Member Functions

bool operator== (PowerupType type) const
 Report whether the entry holds a powerup of one kind.

Public Attributes

Powerup * mPowerup
int mCount

Detailed Description

One configured kind, with the number of them stored.

The record is eight bytes and the vector steps over it in eights.

Both members are public, because the only code that reads either is a member of PowerupCollection and the record has no behaviour of its own.

Member Function Documentation

◆ operator==()

bool PowerupCollection::PowCount::operator== ( PowerupType type) const
inline

Report whether the entry holds a powerup of one kind.

Inline, with an unreferenced out-of-line copy. The std::find instantiation at 0x001cc628 expands it.

Parameters
typeThe kind.
Returns
Non-zero when Powerup::Type() reports type.
Ghidra address:
NTSC-U/C: 0x001cc9b0
Ghidra address:
PAL: 0x001d2868

Member Data Documentation

◆ mPowerup

Powerup* PowerupCollection::PowCount::mPowerup

The powerup, which the collection deletes. +0x00

◆ mCount

int PowerupCollection::PowCount::mCount

How many are stored, from 0 to 9. +0x04


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