Results 1 to 2 of 2
  1. #1
    NTShadow is offline Member
    Join Date
    Oct 2014
    Posts
    1
    Rep Power
    0

    Default How to do stats in Java

    How would you efficiently store and access stats in Java?

    Java Code:
    Monster[Attacked].takeDamage[Attackers damage modified by Defenders defense]
    The purpose is for something like that... Trying to work towards that.

    How would you store the stats for units (hp, mp, strength, defense, etc.) ?

  2. #2
    KevinWorkman's Avatar
    KevinWorkman is offline Crazy Cat Lady
    Join Date
    Oct 2010
    Location
    Washington, DC
    Posts
    4,143
    Rep Power
    14

    Default Re: How to do stats in Java

    I don't know how to answer this question other than by saying "variables".

    Do you have a more specific question? What exactly are you confused about?
    How to Ask Questions the Smart Way
    Static Void Games - GameDev tutorials, free Java and JavaScript hosting!
    Static Void Games forum - Come say hello!

Similar Threads

  1. JSP Tutorial on making stats
    By tj_wolf2 in forum JavaServer Pages (JSP) and JSTL
    Replies: 0
    Last Post: 04-14-2011, 12:24 AM
  2. Run Time Stats
    By JamesF in forum Advanced Java
    Replies: 1
    Last Post: 07-16-2008, 12:33 AM
  3. Sales-n-Stats 2.1 Beta
    By levent in forum Java Software
    Replies: 0
    Last Post: 05-26-2007, 12:26 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •