#34 Dice rolling package

OpenRPG2
closed-accepted
Todd Faris
Die Roller (8)
5
2006-04-06
2006-04-06
Mark Tarrabain
No

Here's a framework for a dice package.... commented in
a hurry... hopefully it's sensible.

Let me know if it needs any work before inclusion.

>> Mark
(markt@lynx.net)

Discussion

  • Mark Tarrabain
    Mark Tarrabain
    2006-04-06

    src/openrpg2/common/core/dice/

     
    Attachments
  • Mark Tarrabain
    Mark Tarrabain
    2006-04-06

    • assigned_to: posterboy --> snowdog_
     
  • Todd Faris
    Todd Faris
    2006-04-06

    Logged In: YES
    user_id=670456

    I've integrated it into the code at openrpg2.common.dice as
    its not really required for operation of the client or
    server. The code didn't compile under 1.4 due to
    Integer.valueOf() statements. It seems that 1.5 handles
    Intergers and int almost interchangeablely (which makes
    sense) and converts Integers to ints as required. 1.4
    doesn't do this. I replaced all troublesome instances of
    valueOf() with parseInt() as thats what it appears you
    wanted to do anyway.

    Did some minor reoganization to group vars and moved the
    constructor in DiceParser. Also renamed DiceParser.main to
    DiceParser.testDiceParser() just because main made no sense
    once integrated.

     
  • Todd Faris
    Todd Faris
    2006-04-06

    • status: open --> closed-accepted