[ogs-changes] dist/java/ogs/creatures/humanoids Dwarf.java,NONE,1.1 Elf.java,NONE,1.1 Gnome.java,NON
Status: Alpha
Brought to you by:
elemings
Update of /cvsroot/ogs/dist/java/ogs/creatures/humanoids
In directory sc8-pr-cvs1:/tmp/cvs-serv9450/java/ogs/creatures/humanoids
Added Files:
Dwarf.java Elf.java Gnome.java HalfElf.java HalfOrc.java
Halfling.java Human.java package.html
Log Message:
See ChangeLog files (Apr 3-4) for details.
--- NEW FILE: Dwarf.java ---
/*
* Dwarf.java -- class declaration for dwarves
* Copyright (C) 2003 Eric Lemings <ele...@us...>
*
* This software is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* This software is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this software; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
* 02111-1307, USA
*
* RCS: $Id: Dwarf.java,v 1.1 2003/04/04 20:22:54 elemings Exp $
*/
package ogs.creatures.humanoids;
import ogs.core.Die;
import ogs.core.details.Maturity;
import ogs.creatures.Humanoid;
/**
* A sturdy humanoid creature skilled in stonework and metalcraft.
* Dwarves are shorter but broader and just as heavy as humans and thus
* considered as medium-size creatures but they cannot move quite as
* fast. Dwarves are most at home in areas with a preponderance of
* stone and metals such as mountains or rocky hillsides. Most of them
* live in underground mansions where they work in vast complexes of
* mines and forges. <P>
*
* They have many special racial traits that make them well suited to
* life underground. Dwarves have darkvision that allows them to see
* without color up to 60 feet in total darkness. They share a feature
* common to many earth dwellers called stonecunning. Their favored
* class is fighter. Dwarves also get the following modifiers: <P>
*
* <UL>
* <LI> +2 bonus when rolling Constitution scores
* <LI> -2 penalty when rolling Charisma scores
* <LI> +2 bonus to Fortitude saves against poison
* <LI> +2 bonus to all saves against spells and spell-like effects
* <LI> +1 bonus to attacks against orckind and goblinoids
* <LI> +4 bonus to defense against giantkin.
* <LI> +2 bonus to Appraise skill check for rare or exotic items
* <LI> +2 bonus to Craft checks for stone or metal
* </UL>
*
* Dwarves typically exist in fantasy campaign settings.
*/
public class Dwarf extends Humanoid implements Maturity {
private static Die maximumAge = new Die (Die.d100, 2, 250);
/**
* Create a new dwarf.
*/
public Dwarf () {
// empty constructor body
}
/**
* Determine the average adult age for this type of creature. The
* adult age for dwarves is 40 years.
*
* @return 40 years
*/
public int getAdultAge () {
return (40);
}
/**
* Determine the average middle age for this type of creature. The
* middle age for dwarves is 125 years.
*
* @return 125 years
*/
public int getMiddleAge () {
return (125);
}
/**
* Determine the average old age for this type of creature. The old
* age for dwarves is 188 years.
*
* @return 188 years
*/
public int getOldAge () {
return (188);
}
/**
* Determine the average venerable age for this type of creature. The
* venerable age for dwarves is 250 years.
*
* @return 250 years
*/
public int getVenerableAge () {
return (this.maximumAge.getModifier ());
}
/**
* Access the die used to roll a random maximum age for a PC. The die
* used to roll maximum ages for dwarves is 2d100.
*
* @return 2d100+250
*/
public Die getMaximumAge () {
return (this.maximumAge);
}
}
--- NEW FILE: Elf.java ---
/*
* Elf.java -- class declaration for elves
* Copyright (C) 2003 Eric Lemings <ele...@us...>
*
* This software is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* This software is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this software; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
* 02111-1307, USA
*
* RCS: $Id: Elf.java,v 1.1 2003/04/04 20:22:54 elemings Exp $
*/
package ogs.creatures.humanoids;
import ogs.core.Die;
import ogs.core.details.Maturity;
import ogs.creatures.Humanoid;
/**
* A mystical humanoid creature with an affinity for nature and magic.
* Elves can live for hundreds of years. Their skill and knowledge are
* usually superior to humans but they are usually more fraile and less
* resilient. Their resolve however can be just as strong as any other
* creature. In stature, they are slightly shorter and lighter than most
* humans and are generally considered fairer in appearance. They can
* move just as fast as humans and their senses are significantly
* sharper. Elves have low-light vision which allows them to see twice
* as far as humans even in near darkness. <P>
*
* Most elves are sylvan folk. They tend to live in great forests where
* they are in harmony with nature and free to uncover natural and
* arcane secrets of the world without interference from less
* sympathetic civilizations. Many elves thus become rangers and druids
* though wizard is their favored character class. Elves are also
* inherently resistant to certain forms of magic. They are immune to
* all sleep spells. In addition, elves have the following racial traits.<P>
*
* <UL>
* <LI> +2 bonus when rolling Dexterity scores
* <LI> -2 penalty when rolling Constitution scores
* <LI> +2 bonus to saves against Enchantment spells and spell-like effects
* <LI> +2 bonus to Listen, Search, and Spot skill checks
* <LI>
* </UL>
*
* Elves typically exist in fantasy campaign settings.
*/
public class Elf extends Humanoid implements Maturity {
private static Die maximumAge = new Die (Die.d100, 4, 350);
/**
* Create a new elf.
*/
public Elf () {
// empty constructor body
}
/**
* Determine the average adult age for this type of creature. The
* adult age for elves is 110 years.
*
* @return 110 years
*/
public int getAdultAge () {
return (110);
}
/**
* Determine the average middle age for this type of creature. The
* middle age for elves is 175 years.
*
* @return 175 years
*/
public int getMiddleAge () {
return (175);
}
/**
* Determine the average old age for this type of creature. The old
* age for elves is 263 years.
*
* @return 263 years
*/
public int getOldAge () {
return (263);
}
/**
* Determine the average venerable age for this type of creature. The
* venerable age for elves is 350 years.
*
* @return 350 years
*/
public int getVenerableAge () {
return (this.maximumAge.getModifier ());
}
/**
* Access the die used to roll a random maximum age for a PC. The die
* used to roll maximum ages for elves is 4d100.
*
* @return 4d100+350
*/
public Die getMaximumAge () {
return (this.maximumAge);
}
}
--- NEW FILE: Gnome.java ---
/*
* Gnome.java -- class declaration for gnomes
* Copyright (C) 2003 Eric Lemings <ele...@us...>
*
* This software is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* This software is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this software; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
* 02111-1307, USA
*
* RCS: $Id: Gnome.java,v 1.1 2003/04/04 20:22:54 elemings Exp $
*/
package ogs.creatures.humanoids;
import ogs.core.Die;
import ogs.core.details.Maturity;
import ogs.creatures.Humanoid;
/**
* A curious humanoid creature with a propensity for mechanics and
* pranks. TODO: Finish this description.
*
* Gnomes are typically found in fantasy campaign settings.
*/
public class Gnome extends Humanoid implements Maturity {
private static Die maximumAge = new Die (Die.d100, 3, 200);
/**
* Create a new gnome.
*/
public Gnome () {
// empty constructor body
}
/**
* Determine the average adult age for this type of creature. The
* adult age for gnomes is 40 years.
*
* @return 40 years
*/
public int getAdultAge () {
return (40);
}
/**
* Determine the average middle age for this type of creature. The
* middle age for gnomes is 100 years.
*
* @return 100 years
*/
public int getMiddleAge () {
return (100);
}
/**
* Determine the average old age for this type of creature. The old
* age for gnomes is 150 years.
*
* @return 150 years
*/
public int getOldAge () {
return (150);
}
/**
* Determine the average venerable age for this type of creature. The
* venerable age for gnomes is 200 years.
*
* @return 200 years
*/
public int getVenerableAge () {
return (this.maximumAge.getModifier ());
}
/**
* Access the die used to roll a random maximum age for a PC. The die
* used to roll maximum ages for gnomes is 3d100.
*
* @return 3d100+200
*/
public Die getMaximumAge () {
return (this.maximumAge);
}
}
--- NEW FILE: HalfElf.java ---
/*
* HalfElf.java -- class declaration for half-elves
* Copyright (C) 2003 Eric Lemings <ele...@us...>
*
* This software is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* This software is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this software; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
* 02111-1307, USA
*
* RCS: $Id: HalfElf.java,v 1.1 2003/04/04 20:22:54 elemings Exp $
*/
package ogs.creatures.humanoids;
import ogs.core.Die;
import ogs.core.details.Maturity;
import ogs.creatures.Humanoid;
/**
* A progeny of a human and an elf. TODO: Finish this description.
*
* Half-elves typically exist in fantasy campaign settings.
*/
public class HalfElf extends Humanoid implements Maturity {
private static Die maximumAge = new Die (Die.d20, 3, 125);
/**
* Create a new half-elf.
*/
public HalfElf() {
// empty constructor body
}
/**
* Determine the average adult age for this type of creature. The
* adult age for half-elves is 20 years.
*
* @return 20 years
*/
public int getAdultAge () {
return (20);
}
/**
* Determine the average middle age for this type of creature. The
* middle age for half-elves is 62 years.
*
* @return 62 years
*/
public int getMiddleAge () {
return (62);
}
/**
* Determine the average old age for this type of creature. The old
* age for half-elves is 93 years.
*
* @return 93 years
*/
public int getOldAge () {
return (93);
}
/**
* Determine the average venerable age for this type of creature. The
* venerable age for half-elves is 125 years.
*
* @return 125 years
*/
public int getVenerableAge () {
return (this.maximumAge.getModifier ());
}
/**
* Access the die used to roll a random maximum age for a PC. The die
* used to roll maximum ages for half-elves is 3d20.
*
* @return 3d20+125
*/
public Die getMaximumAge () {
return (this.maximumAge);
}
}
--- NEW FILE: HalfOrc.java ---
/*
* HalfOrc.java -- class declaration for half-orcs
* Copyright (C) 2003 Eric Lemings <ele...@us...>
*
* This software is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* This software is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this software; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
* 02111-1307, USA
*
* RCS: $Id: HalfOrc.java,v 1.1 2003/04/04 20:22:54 elemings Exp $
*/
package ogs.creatures.humanoids;
import ogs.core.Die;
import ogs.core.details.Maturity;
import ogs.creatures.Humanoid;
/**
* A progeny of a human and an orc. TODO: Finish this description.
*
* Half-orcs typically exist in fantasy campaign settings.
*/
public class HalfOrc extends Humanoid implements Maturity {
private static Die maximumAge = new Die (Die.d10, 2, 60);
/**
* Create a new half-orc.
*/
public HalfOrc () {
// empty constructor body
}
/**
* Determine the average adult age for this type of creature. The
* adult age for half-orcs is 14 years.
*
* @return 14 years
*/
public int getAdultAge () {
return (14);
}
/**
* Determine the average middle age for this type of creature. The
* middle age for half-orcs is 30 years.
*
* @return 30 years
*/
public int getMiddleAge () {
return (30);
}
/**
* Determine the average old age for this type of creature. The old
* age for half-orcs is 45 years.
*
* @return 45 years
*/
public int getOldAge () {
return (45);
}
/**
* Determine the average venerable age for this type of creature. The
* venerable age for half-orcs is 60 years.
*
* @return 60 years
*/
public int getVenerableAge () {
return (this.maximumAge.getModifier ());
}
/**
* Access the die used to roll a random maximum age for a PC. The die
* used to roll maximum ages for half-orcs is 2d10.
*
* @return 2d10+60
*/
public Die getMaximumAge () {
return (this.maximumAge);
}
}
--- NEW FILE: Halfling.java ---
/*
* Halfling.java -- class declaration for halflings
* Copyright (C) 2003 Eric Lemings <ele...@us...>
*
* This software is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* This software is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this software; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
* 02111-1307, USA
*
* RCS: $Id: Halfling.java,v 1.1 2003/04/04 20:22:54 elemings Exp $
*/
package ogs.creatures.humanoids;
import ogs.core.Die;
import ogs.core.details.Maturity;
import ogs.creatures.Humanoid;
/**
* A creature much like a human but about half the size. TODO: Finish
* this description.
*
* Halfings are typically found in fantasy campaign settings.
*/
public class Halfling extends Humanoid implements Maturity {
private static Die maximumAge = new Die (Die.d100, 2, 100);
/**
* Create a new halfling.
*/
public Halfling () {
// empty constructor body
}
/**
* Determine the average adult age for this type of creature. The
* adult age for halflings is 20 years.
*
* @return 20 years
*/
public int getAdultAge () {
return (20);
}
/**
* Determine the average middle age for this type of creature. The
* middle age for halflings is 50 years.
*
* @return 50 years
*/
public int getMiddleAge () {
return (50);
}
/**
* Determine the average old age for this type of creature. The old
* age for halflings is 75 years.
*
* @return 75 years
*/
public int getOldAge () {
return (75);
}
/**
* Determine the average venerable age for this type of creature. The
* venerable age for halflings is 100 years.
*
* @return 100 years
*/
public int getVenerableAge () {
return (this.maximumAge.getModifier ());
}
/**
* Access the die used to roll a random maximum age for a PC. The die
* used to roll maximum ages for halflings is 5d20.
*
* @return 5d20+100
*/
public Die getMaximumAge () {
return (this.maximumAge);
}
}
--- NEW FILE: Human.java ---
/*
* Human.java -- class for humans
* Copyright (C) 2003 Eric Lemings <ele...@us...>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
* USA
*
* RCS: $Id: Human.java,v 1.1 2003/04/04 20:22:54 elemings Exp $
*/
package ogs.creatures.humanoids;
import ogs.core.Die;
import ogs.core.details.Maturity;
import ogs.creatures.Humanoid;
/**
* The human race. Humans have the fewest special features. A human
* character gains one (1) bonus feat and four (4) extra skill points
* at 1st-level and one (1) extra skill point for each additional level.
* Also, humans have no inherent favored class; the favored cclass of a
* particular human character is his or her cclass with the highest
* level.
*/
public class Human extends Humanoid implements Maturity {
private static Die maximumAge = new Die (Die.d20, 2, 70);
/**
* Create a new human.
*/
public Human () {
// empty constructor body
}
/**
* Determine the average adult age for this type of creature. The
* adult age for humans is 15 years.
*
* @return 15 years
*/
public int getAdultAge () {
return (15);
}
/**
* Determine the average middle age for this type of creature. The
* middle age for humans is 35 years.
*
* @return 35 years
*/
public int getMiddleAge () {
return (35);
}
/**
* Determine the average old age for this type of creature. The old
* age for humans is 53 years.
*
* @return 53 years
*/
public int getOldAge () {
return (53);
}
/**
* Determine the average venerable age for this type of creature. The
* venerable age for humans is 70 years.
*
* @return 70 years
*/
public int getVenerableAge () {
return (this.maximumAge.getModifier ());
}
/**
* Access the die used to roll a random maximum age for a PC. The die
* used to roll maximum ages for humans is 2d20.
*
* @return 2d20+70
*/
public Die getMaximumAge () {
return (this.maximumAge);
}
}
--- NEW FILE: package.html ---
<HTML>
<HEAD>
<TITLE>ogs.creatures.humanoids (Open Gaming System)</TITLE>
</HEAD>
<BODY>
A collection of common humanoid creatures.
</BODY>
</HTML>
|