• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

designing a DnD Character Sheet

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
For my first real project using swing I'm trying to make a digital DnD character sheet.

Right now I have one panel that handles all the abilities. You can type in a value in to the ability score and the appropriate modifier is automatically generated.

The Saves panel works in a very similar way, but the total saves value relies on an ability modifier. I'd like to be able to have the ability modifier in the saves panel automatically updated
anytime a new value is entered in the abilities panel, but I'm not sure what the best way to make these two classes communicate is. Many other fields in the character sheet will rely on an
ability modifier or some other value to make calculations so I'd like to establish some kind of mediator class that would hold the values of everything on the character sheets and automatically
update certain values whenever a change is made to different fields.

Both these panels will eventually be contained in another panel.

Many of these classes contain main()s, they're not the actual mains and are just for temporary testing.

Ability Row - http://pastebin.com/zTJYwN0t
Abilities Panel - http://pastebin.com/yR0LWzG3

Save Row - http://pastebin.com/mzk2ZhQF
Save Panel - http://pastebin.com/dPWhtCip
 
reply
    Bookmark Topic Watch Topic
  • New Topic