This topic has been moved to Adventure Related Talk & Chat.
http://www.adventuregamestudio.co.uk/forums/index.php?topic=48603.0
http://www.adventuregamestudio.co.uk/forums/index.php?topic=48603.0
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Show posts Menu
struct RpgWeapon{
String name;
int damage;
};
struct RpgSpell{
String name;
int mpCost;
int damage;
};
struct RpgChar{
String name;
// ...
RpgSpell spells[10]; // ILLEGAL!
RpgWeapon* currentWeapon; // ILLEGAL!
import int attack(RpgChar* target); // ILLEGAL!
// ...
};
struct RpgChar{
String name;
// ...
int spells[10]; // entries index into RpgSpells
int currentWeapon; // indexes into RpgWeapons
import int attack(int target); // target indexes into RpgChars
// ...
};
RpgWeapon RpgWeapons[RPGWEAPONS_MAX];
RpgSpell RpgSpells[RPGSPELLS_MAX];
RpgChar RpgChars[RPGCHARS_MAX];
By continuing to use this site you agree to the use of cookies. Please visit this page to see exactly how we use these.
Page created in 0.078 seconds with 17 queries.