|
Binding of Isaac - Afterbirth+ Lua Reference/Guide
|
Public Member Functions | |
| table | GetData () |
| Update () | |
| Render (Vector Offset) | |
| boolean | RenderShadowLayer (Vector Offset) |
| PostRender () | |
| boolean | TakeDamage (float Damage, integer Flags, EntityRef Source, integer DamageCountdown) |
| boolean | HasMortalDamage () |
| Kill () | |
| Kills the entity and makes a blood splat or gibs. More... | |
| Die () | |
| Remove () | |
| BloodExplode () | |
| Explodes with gibs and blood. More... | |
| AddVelocity (Vector Velocity) | |
| MultiplyFriction (float Value) | |
| SetColor (KColor KColor, integer Duration, integer Priority, boolean Fadeout, boolean Share) | |
| const KColor & | GetColor () |
| SetSpriteFrame (string AnimationName, integer FrameNum) | |
| SetSpriteOverlayFrame (string AnimationName, integer FrameNum) | |
| SetSize (float Size, Vector SizeMulti, integer NumGridCollisionPoints) | |
| boolean | CollidesWithGrid () |
| boolean | IsEnemy () |
| return true for NPCs that are not controlled by the player More... | |
| boolean | IsActiveEnemy (boolean includeDead) |
| return true for non background NPCs (ex: every enemy except fire and shopkeepers) More... | |
| boolean | IsVulnerableEnemy () |
| return true for enemies that can be damaged More... | |
| boolean | IsFlying () |
| AddEntityFlags (integer Flags) | |
| ClearEntityFlags (integer Flags) | |
| integer | GetEntityFlags () |
| boolean | HasEntityFlags (integer Flags) |
| boolean | HasFullHealth () |
| AddHealth (float HitPoints) | |
| AddPoison (EntityRef Source, integer Duration, float Damage) | |
| AddFreeze (EntityRef Source, integer Duration) | |
| AddSlowing (EntityRef Source, integer Duration, float SlowValue, KColor SlowColor) | |
| Makes the friction higher. More... | |
| AddCharmed (integer Duration) | |
| AddConfusion (EntityRef Source, integer Duration, boolean IgnoreBosses) | |
| AddMidasFreeze (EntityRef Source, integer Duration) | |
| AddFear (EntityRef Source, integer Duration) | |
| AddBurn (EntityRef Source, integer Duration, float Damage) | |
| AddShrink (EntityRef Source, integer Duration) | |
| RemoveStatusEffects () | |
| boolean | Exists () |
| boolean | IsDead () |
| boolean | IsVisible () |
| boolean | IsInvincible () |
| boolean | CanShutDoors () |
| enemies keep the doors shut More... | |
| boolean | IsBoss () |
| bosses display health bar More... | |
| BossId | GetBossID () |
| Entity & | GetLastParent () |
| Entity & | GetLastChild () |
| boolean | HasCommonParentWithEntity (Entity Other) |
| boolean | IsFrame (integer Frame, integer Offset) |
| true every X frames More... | |
| RNG & | GetDropRNG () |
| Sprite & | GetSprite () |
| EntityPlayer | ToPlayer () |
| EntityEffect | ToEffect () |
| EntityNPC | ToNPC () |
| EntityPickup | ToPickup () |
| EntityFamiliar | ToFamiliar () |
| EntityBomb | ToBomb () |
| EntityKnife | ToKnife () |
| EntityLaser | ToLaser () |
| EntityTear | ToTear () |
| EntityProjectile | ToProjectile () |
Public Attributes | |
| float | Friction |
| loaded from entity config More... | |
| Vector | Position |
| Vector | Velocity |
| const EntityType | Type |
| integer | Variant |
| void SetType(eEntityType Type); More... | |
| integer | SubType |
| EntityType | SpawnerType |
| integer | SpawnerVariant |
| const KColor & | SplatColor |
| boolean | Visible |
| const Vector & | PositionOffset |
| integer | RenderZOffset |
| boolean | FlipX |
| const Vector & | SpriteOffset |
| const Vector & | SpriteScale |
| float | SpriteRotation |
| Vector | SizeMulti |
| float | Mass |
| float | MaxHitPoints |
| float | HitPoints |
| const integer | Index |
| const Vector & | TargetPosition |
| GridCollisionClass | GridCollisionClass |
| EntityCollisionClass | EntityCollisionClass |
| float | CollisionDamage |
| const integer | SpawnGridIndex |
| Entity & | Parent |
| Entity & | Child |
| Entity & | Target |
| Entity & | SpawnerEntity |
| const integer | FrameCount |
| const integer | InitSeed |
| const integer | DropSeed |
| float | DepthOffset |
| Entity::AddBurn | ( | EntityRef | Source, |
| integer | Duration, | ||
| float | Damage | ||
| ) |
| Entity::AddCharmed | ( | integer | Duration | ) |
| Entity::AddConfusion | ( | EntityRef | Source, |
| integer | Duration, | ||
| boolean | IgnoreBosses | ||
| ) |
| Entity::AddEntityFlags | ( | integer | Flags | ) |
| Entity::AddFear | ( | EntityRef | Source, |
| integer | Duration | ||
| ) |
| Entity::AddFreeze | ( | EntityRef | Source, |
| integer | Duration | ||
| ) |
| Entity::AddHealth | ( | float | HitPoints | ) |
| Entity::AddMidasFreeze | ( | EntityRef | Source, |
| integer | Duration | ||
| ) |
| Entity::AddPoison | ( | EntityRef | Source, |
| integer | Duration, | ||
| float | Damage | ||
| ) |
| Entity::AddShrink | ( | EntityRef | Source, |
| integer | Duration | ||
| ) |
Makes the friction higher.
| Entity::AddVelocity | ( | Vector | Velocity | ) |
| Entity::BloodExplode | ( | ) |
Explodes with gibs and blood.
| boolean Entity::CanShutDoors | ( | ) |
enemies keep the doors shut
| Entity::ClearEntityFlags | ( | integer | Flags | ) |
| boolean Entity::CollidesWithGrid | ( | ) |
| Entity::Die | ( | ) |
| boolean Entity::Exists | ( | ) |
| BossId Entity::GetBossID | ( | ) |
| const KColor& Entity::GetColor | ( | ) |
| table Entity::GetData | ( | ) |
| RNG& Entity::GetDropRNG | ( | ) |
| integer Entity::GetEntityFlags | ( | ) |
| Entity& Entity::GetLastChild | ( | ) |
| Entity& Entity::GetLastParent | ( | ) |
| Sprite& Entity::GetSprite | ( | ) |
| boolean Entity::HasCommonParentWithEntity | ( | Entity | Other | ) |
| boolean Entity::HasEntityFlags | ( | integer | Flags | ) |
| boolean Entity::HasFullHealth | ( | ) |
| boolean Entity::HasMortalDamage | ( | ) |
| boolean Entity::IsActiveEnemy | ( | boolean | includeDead | ) |
return true for non background NPCs (ex: every enemy except fire and shopkeepers)
| boolean Entity::IsBoss | ( | ) |
bosses display health bar
| boolean Entity::IsDead | ( | ) |
| boolean Entity::IsEnemy | ( | ) |
return true for NPCs that are not controlled by the player
| boolean Entity::IsFlying | ( | ) |
| boolean Entity::IsFrame | ( | integer | Frame, |
| integer | Offset | ||
| ) |
true every X frames
| boolean Entity::IsInvincible | ( | ) |
| boolean Entity::IsVisible | ( | ) |
| boolean Entity::IsVulnerableEnemy | ( | ) |
return true for enemies that can be damaged
| Entity::Kill | ( | ) |
Kills the entity and makes a blood splat or gibs.
| Entity::MultiplyFriction | ( | float | Value | ) |
| Entity::PostRender | ( | ) |
| Entity::Remove | ( | ) |
Makes the entity dead remove the entity from the game instantly, without doing any additional effects/animation
| Entity::RemoveStatusEffects | ( | ) |
| Entity::Render | ( | Vector | Offset | ) |
| boolean Entity::RenderShadowLayer | ( | Vector | Offset | ) |
| Entity::SetColor | ( | KColor | KColor, |
| integer | Duration, | ||
| integer | Priority, | ||
| boolean | Fadeout, | ||
| boolean | Share | ||
| ) |
| Entity::SetSize | ( | float | Size, |
| Vector | SizeMulti, | ||
| integer | NumGridCollisionPoints | ||
| ) |
| Entity::SetSpriteFrame | ( | string | AnimationName, |
| integer | FrameNum | ||
| ) |
| Entity::SetSpriteOverlayFrame | ( | string | AnimationName, |
| integer | FrameNum | ||
| ) |
| boolean Entity::TakeDamage | ( | float | Damage, |
| integer | Flags, | ||
| EntityRef | Source, | ||
| integer | DamageCountdown | ||
| ) |
| EntityBomb Entity::ToBomb | ( | ) |
| EntityEffect Entity::ToEffect | ( | ) |
| EntityFamiliar Entity::ToFamiliar | ( | ) |
| EntityKnife Entity::ToKnife | ( | ) |
| EntityLaser Entity::ToLaser | ( | ) |
| EntityNPC Entity::ToNPC | ( | ) |
| EntityPickup Entity::ToPickup | ( | ) |
| EntityPlayer Entity::ToPlayer | ( | ) |
| EntityProjectile Entity::ToProjectile | ( | ) |
| EntityTear Entity::ToTear | ( | ) |
| Entity::Update | ( | ) |
| Entity& Entity::Child |
| float Entity::CollisionDamage |
| float Entity::DepthOffset |
| const integer Entity::DropSeed |
| EntityCollisionClass Entity::EntityCollisionClass |
| boolean Entity::FlipX |
| const integer Entity::FrameCount |
| float Entity::Friction |
loaded from entity config
| GridCollisionClass Entity::GridCollisionClass |
| float Entity::HitPoints |
| const integer Entity::Index |
| const integer Entity::InitSeed |
| float Entity::Mass |
| float Entity::MaxHitPoints |
| Entity& Entity::Parent |
| Vector Entity::Position |
| const Vector& Entity::PositionOffset |
| integer Entity::RenderZOffset |
| Vector Entity::SizeMulti |
| Entity& Entity::SpawnerEntity |
| EntityType Entity::SpawnerType |
| integer Entity::SpawnerVariant |
| const integer Entity::SpawnGridIndex |
| const KColor& Entity::SplatColor |
| const Vector& Entity::SpriteOffset |
| float Entity::SpriteRotation |
| const Vector& Entity::SpriteScale |
| integer Entity::SubType |
| Entity& Entity::Target |
| const Vector& Entity::TargetPosition |
| const EntityType Entity::Type |
| integer Entity::Variant |
void SetType(eEntityType Type);
| Vector Entity::Velocity |
| boolean Entity::Visible |