Package zombie.characters
Class SurvivorFactory
java.lang.Object
zombie.characters.SurvivorFactory
public class SurvivorFactory
extends java.lang.Object
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SurvivorFactory.SurvivorType
-
Field Summary
Fields Modifier and Type Field Description static java.util.ArrayList
FemaleForenames
static java.util.ArrayList
MaleForenames
static java.util.ArrayList
Surnames
-
Constructor Summary
Constructors Constructor Description SurvivorFactory()
-
Method Summary
Modifier and Type Method Description static void
addFemaleForename(java.lang.String forename)
static void
addMaleForename(java.lang.String forename)
static void
addSurname(java.lang.String surName)
static SurvivorDesc[]
CreateFamily(int nCount)
static SurvivorDesc
CreateSurvivor()
static SurvivorDesc
CreateSurvivor(SurvivorFactory.SurvivorType survivorType)
static SurvivorDesc
CreateSurvivor(SurvivorFactory.SurvivorType survivorType, boolean bFemale)
static SurvivorDesc[]
CreateSurvivorGroup(int nCount)
static IsoSurvivor
InstansiateInCell(SurvivorDesc desc, IsoCell cell, int x, int y, int z)
static void
randomName(SurvivorDesc desc)
static void
Reset()
static void
setBeardNoColor(SurvivorDesc survivor)
static void
setHairNoColor(SurvivorDesc survivor)
static void
setTorso(SurvivorDesc survivor)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
FemaleForenames
public static java.util.ArrayList FemaleForenames -
MaleForenames
public static java.util.ArrayList MaleForenames -
Surnames
public static java.util.ArrayList Surnames
-
-
Constructor Details
-
SurvivorFactory
public SurvivorFactory()
-
-
Method Details
-
Reset
public static void Reset() -
CreateFamily
-
CreateSurvivor
-
CreateSurvivor
public static SurvivorDesc CreateSurvivor(SurvivorFactory.SurvivorType survivorType, boolean bFemale) -
setBeardNoColor
-
setTorso
-
setHairNoColor
-
CreateSurvivor
-
CreateSurvivorGroup
-
InstansiateInCell
-
randomName
-
addSurname
public static void addSurname(java.lang.String surName) -
addFemaleForename
public static void addFemaleForename(java.lang.String forename) -
addMaleForename
public static void addMaleForename(java.lang.String forename)
-