#include <actor.h>
Classes | |
| struct | A3DSAnim |
Public Member Functions | |
| ActorStruct (int maxLife=0) | |
| ShapeType | brickShape () const |
| void | setCollision (ShapeType shapeType) |
| void | setBrickCausesDamage () |
| bool | brickCausesDamage () |
| void | addLife (int32 val) |
| void | setLife (int32 val) |
| bool | isAttackWeaponAnimationActive () const |
| bool | isAttackAnimationActive () const |
| bool | isJumpAnimationActive () const |
| const IVec3 & | posObj () const |
Public Attributes | |
| StaticFlagsStruct | _flags |
| DynamicFlagsStruct | _workFlags |
| EntityData | _entityData |
| int32 | _body = -1 |
| BodyType | _genBody = BodyType::btNormal |
| BodyType | _saveGenBody = BodyType::btNormal |
| AnimationTypes | _genAnim = AnimationTypes::kAnimNone |
| AnimationTypes | _nextGenAnim = AnimationTypes::kStanding |
| AnimationTypes | _ptrAnimAction = AnimationTypes::kAnimNone |
| int32 | _sprite = 0 |
| EntityData * | _entityDataPtr = nullptr |
| int16 | _actorIdx = 0 |
| IVec3 | _posObj |
| struct TwinE::ActorStruct::A3DSAnim | A3DS |
| int32 | _hitForce = 0 |
| int32 | _hitBy = -1 |
| BonusParameter | _bonusParameter |
| int32 | _beta = 0 |
| int32 | _srot = 40 |
| ControlMode | _move = ControlMode::kNoMove |
| int32 | _delayInMillis = 0 |
| int32 | _cropLeft = 0 |
| int32 | _cropTop = 0 |
| int32 | _cropRight = 0 |
| int32 | _cropBottom = 0 |
| int32 | _followedActor = 0 |
| int32 | _bonusAmount = 0 |
| int32 | _talkColor = COLOR_BLACK |
| int32 | _armor = 1 |
| int32 | _lifePoint = 0 |
| IVec3 | _processActor |
| IVec3 | _oldPos |
| int32 | _offsetTrack = -1 |
| uint8 * | _ptrTrack = nullptr |
| int32 | _moveScriptSize = 0 |
| int32 | _offsetLife = 0 |
| int32 | _saveOffsetLife = 0 |
| uint8 * | _lifeScript = nullptr |
| int32 | _lifeScriptSize = 0 |
| int32 | _labelTrack = 0 |
| int32 | _offsetLabelTrack = 0 |
| int32 | _memoLabelTrack = 0 |
| int32 | _objCol = -1 |
| int32 | _carryBy = -1 |
| int32 | _zoneSce = -1 |
| int32 | _animStepBeta = 0 |
| IVec3 | _animStep |
| int32 | _anim = -1 |
| int32 | _doorWidth = 0 |
| int32 | _frame = 0 |
| AnimType | _flagAnim = AnimType::kAnimationTypeRepeat |
| int32 | _spriteActorRotation = 0 |
| uint8 | _brickSound = 0U |
| int32 | SampleAlways = 0 |
| uint8 | SampleVolume = 0 |
| int16 | SizeSHit |
| BoundingBox | _boundingBox |
| RealValue | realAngle |
Actors structure
Such as characters, doors, moving platforms, invisible actors, ...
| IVec3 TwinE::ActorStruct::_processActor |
Process actor coordinate Nxw, Nyw, Nzw
| int32 TwinE::ActorStruct::_objCol = -1 |
colliding actor id
| int32 TwinE::ActorStruct::_carryBy = -1 |
actor id we are standing on