Entity - JohnDoeAntler/LF2-AI-Abstraction GitHub Wiki
An Info object wrapper, it is used to identify the object state in OOP way. It also extends the Position class thus it could also invoke position's member method.
- Constructor
- Properties
-
Methods
- getId
- getNum
- isFacing
- getWaitCounter
- getFrame
- getState
- getType
- getHp
- getMp
- getBlink
- getTeam
- getWeaponHeld
- getWeaponType
- getCTimer (PLEASE NOTE THAT IT WILL ONLY WORKS IN MY DDRAW.DLL)
- isPlayer
- isStanding
- isWalking
- isRunning
- isAttacking
- isJumping
- isDashing
- isDashAttacking
- isFlipping
- isRolling
- isDefending
- isBrokenDefend
- isCatching
- isCaught
- isInjured
- isFalling
- isFrozen
- isLying
- isStunned
- isDrinking
- isOnFire
- isSkilling
- isAttackable
- Snippets
you could wrap the target by just passing in the Info object.
The recommended method to instantiate Entity object: click here.
Entity(Info@ info);
// examples
Entity@ e1 = Entity(self);
Entity@ e2 = Entity(target);you could wrap the target by filling in the target's object number.
The recommended method to instantiate Entity object: click here.
Entity(int num);
// examples
Entity@ e1 = Entity(self.num);
Entity@ e2 = Entity(target.num);No property available.
it will return a object id of the wrapping object.
entity.getId();it will return a object number of the wrapping object.
entity.getNum();true if facing to left, false if facing to right.
entity.isFacing();true if entity 1 is facing to entity 2, false if entity 1 is not facing to entity 2.
e1.isFacing(e2);it will return the wait counter of current frame.
entity.getWaitCounter();it will return the current frame of the wrapping object.
entity.getFrame();it will return the current state of the wrapping object.
entity.getState();it will return the object type of the wrapping object.
entity.getType();it will return the current hp of the wrapping object.
entity.getHp();it will return the current mp of the wrapping object.
entity.getMp();it will return the current blink of the wrapping object.
entity.getBlink();it will return the team of the wrapping object.
entity.getTeam();it will return the object id of the weapon holding from the wrapping object.
entity.getWeaponHeld();it will return the object type of the weapon holding from the wrapping object.
entity.getWeaponType();it will return the catch timer of the wrapping object.
entity.getCTimer();return true if current object is controlled by player.
entity.isPlayer();return true if current object is standing
entity.isStanding();return true if current object is walking
entity.isWalking();return true if current object is running
entity.isRunning();return true if current object is attacking
entity.isAttacking();return true if current object is jumping
entity.isJumping();return true if current object is dashing
entity.isDashing();return true if current object is dash attacking
entity.isDashAttacking();return true if current object is flipping
entity.isFlipping();return true if current object is rolling
entity.isRolling();return true if current object is defending
entity.isDefending();return true if current object is broken defend
entity.isBrokenDefend();return true if current object is catching someone.
entity.isCatching();return true if current object is caught
entity.isCaught();return true if current object is injured
entity.isInjured();return true if current object is falling
entity.isFalling();return true if current object is frozen
entity.isFrozen();return true if current object is lying
entity.isLying();return true if current object is stunned
entity.isStunned();return true if current object is drinking sth
entity.isDrinking();return true if current object is on fire
entity.isOnFire();return true if current object is performing skill action
entity.isSkilling();return true if current object is attackable
entity.isAttackable();No snippet available.