Editing
AnglerStudios:Code Stats
(section)
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
=Members= Functions: currently all the functions are of the type : get<insertstatnamehere> set<insertstatnamehere> eg: getLevel(); setLevel(); Variables: int level // character level int experience // how close to the next level the character is int maxHP // maximum health int currHP // current health int maxMP // maximum mana int currMP // current mana int strength // will affect melee damage int agility // will affect bow damage, and possibly hit rate and dodge chance int speed // will (eventually) affect how many attacks a character can potentially get in battle int stamina // directly affects health int intelligence // will affect mana, and spell damage list status // will be a linked list containing the status effects currently affecting the character Notes: I am thinking of not making death a status effect... simply disallow any action to be taken by a character with a currHP <= 0 - this could shorten calculations on the linked list somewhat since I am expecting dying in battle to happen a LOT. Of course... if a character has 0 health we can disallow casting of a regular healing spell to change that... anyway we'll see how much overhead this would save (if death isnt common then it'd probably be simpler to make it a status since we'd not be saving much in the way of processing) PS: don't ask me how those cool boxes appeared for my code... I don't know :S [[User:Natoli|Natoli]] 21:08, 6 July 2006 (PDT)
Summary:
Please note that all contributions to RPGnet may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
RPGnet:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
Page
Discussion
English
Views
Read
Edit
View history
More
Search
Navigation
RPGnet
Main Page
Major Projects
Categories
Recent changes
Random page
Help
Tools
What links here
Related changes
Special pages
Page information