001 package com.croftsoft.apps.dice; 002 003 /********************************************************************* 004 * Combat statistics data. 005 * 006 * @version 007 * 2002-02-27 008 * @since 009 * 1996-08-23 010 * @author 011 * <a href="https://www.croftsoft.com/">David Wallace Croft</a> 012 *********************************************************************/ 013 014 public class Combat_Stats { 015 ////////////////////////////////////////////////////////////////////// 016 ////////////////////////////////////////////////////////////////////// 017 018 long thac0 = 10; 019 long ac = 0; 020 long damage_multiplier = 1; 021 long damage_base = 10; 022 long damage_bonus = 0; 023 long hp = 50; 024 025 ////////////////////////////////////////////////////////////////////// 026 ////////////////////////////////////////////////////////////////////// 027 028 public String toString ( ) { 029 ////////////////////////////////////////////////////////////////////// 030 return 031 "THAC0 = " + this.thac0 + " " + 032 "AC = " + this.ac + " " + 033 "Damage = " + this.damage_multiplier + "d" + 034 this.damage_base + "+" + 035 this.damage_bonus + " " + 036 "HP = " + this.hp; 037 } 038 039 ////////////////////////////////////////////////////////////////////// 040 ////////////////////////////////////////////////////////////////////// 041 } 042