mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-08 23:07:42 +00:00
Initial CPlayerGun implementations
This commit is contained in:
@@ -293,7 +293,7 @@ void CPlayerState::ResetVisor()
|
||||
x1c_visorTransitionFactor = 0.0f;
|
||||
}
|
||||
|
||||
bool CPlayerState::ItemEnabled(CPlayerState::EItemType type)
|
||||
bool CPlayerState::ItemEnabled(CPlayerState::EItemType type) const
|
||||
{
|
||||
if (HasPowerUp(type))
|
||||
return (x4_enabledItems & (1 << u32(type)));
|
||||
@@ -312,7 +312,7 @@ void CPlayerState::DisableItem(CPlayerState::EItemType type)
|
||||
x4_enabledItems &= ~(1 << u32(type));
|
||||
}
|
||||
|
||||
bool CPlayerState::HasPowerUp(CPlayerState::EItemType type)
|
||||
bool CPlayerState::HasPowerUp(CPlayerState::EItemType type) const
|
||||
{
|
||||
if (type < EItemType::Max)
|
||||
return x24_powerups[u32(type)].x4_capacity != 0;
|
||||
|
||||
Reference in New Issue
Block a user