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: 4DGL-uLCD-SE Motor SparkfunAnalogJoystick mbed
Fork of Fire_Mbed_2_0 by
FEmain.h
- Committer:
- rpgjake
- Date:
- 2017-05-02
- Revision:
- 2:ccfe87a5ccba
- Parent:
- 1:3a9ef60cbbfc
- Child:
- 3:275705c872e0
File content as of revision 2:ccfe87a5ccba:
#define Mapx 0x003B #define Mapy 0x5001 enum attackType_t { sword, spear, ax, staff, claws, fangs, magic, bow}; typedef struct jobs{ char v; int x; int y; char movement; char rng; attackType_t attack; char damage; char defence; char res; char maxHealth;}job_t; job_t Lord; job_t Pirate; job_t Armor; job_t Cleric; job_t Beast; void init_jobs(void){ Lord.x = 0x003B; Lord.y = 0x5066; Lord.movement = 3; Lord.rng = 1; Lord.attack = sword; Lord.damage = 10; Lord.defence = 3; Lord.maxHealth = 20; Pirate.x = 0x003B; Pirate.y = 0x5068; Pirate.movement = 3; Pirate.rng = 1; Pirate.attack = ax; Pirate.damage = 10; Pirate.defence = 3; Pirate.maxHealth = 20; Armor.x = 0x003B; Armor.y = 0x506A; Armor.movement = 2; Armor.rng = 1; Armor.attack = spear; Armor.damage = 5; Armor.defence = 4; Armor.maxHealth = 30; Cleric.x = 0x003B; Cleric.y = 0x506E; Cleric.movement = 3; Cleric.rng = 1; Cleric.attack = staff; Cleric.damage = 4; Cleric.defence = 3; Cleric.maxHealth = 10; Beast.x = 0x003B; Beast.y = 0x5070; Beast.movement = 3; Beast.rng = 1; Beast.attack = claws; Beast.damage = 5; Beast.defence = 2; Beast.maxHealth = 15; return; }