Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: N5110 PinDetect PowerControl mbed
Enemy Class Reference
#include <Enemy.h>
Inherits Entity.
Public Types | |
enum | Type |
Different type of enemies. More... | |
Public Member Functions | |
int | getRight () |
Returns x-position of the right edge. | |
int | getBottom () |
Returns y-position of the bottom edge. | |
Data Fields | |
Type | type |
What type of enemy it is. | |
int | difficulty |
Multiplier used for giving more points. | |
int | jumpRate |
Probability (in percent) of trying to jump if at ground. | |
int | x |
Position of entity (origin: left upper corner) | |
int | vx |
Velocity of entity. | |
int | width |
Width of entity. | |
int | height |
Height of entity. | |
bool | facingLeft |
True if the entity is facing left. | |
bool | onGround |
True if entity is standing on the ground. | |
bool | dead |
True if enemy is dead. |
Detailed Description
Enemy class.
Definition at line 9 of file Enemy.h.
Member Enumeration Documentation
Member Function Documentation
int getBottom | ( | ) | [inherited] |
int getRight | ( | ) | [inherited] |
Field Documentation
int difficulty |
bool facingLeft [inherited] |
int jumpRate |
bool onGround [inherited] |
Generated on Tue Jul 12 2022 21:59:48 by
