Home › Packages › character

Package character

This package contains 34 source unit(s) defining 34 class(es) / struct(s). Each unit below lists its fields (the values it stores) and methods (the actions it performs), with a plain explanation of each.

AdvertisingModel #sleela 2.5 (lib/character/AdvertisingModel.sleela)

AdvertisingModel class extends BusinessModel

AdvertisingModel — the audience is not the customer; the audience is the product. Revenue is impressions priced per thousand (CPM), and the only cost that matters is keeping the audience entertained enough to stay. A concrete BusinessModel: revenue = (impressions / 1000) x CPM. Family: character.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Fields — the named values this unit stores.

FieldDeclarationWhat it holds
impressionsint impressionsad views this month
cpmCentsint cpmCentsrevenue per 1000 impressions
contentCostCentsint contentCostCentsmonthly cost of making the audience show up

Methods — the actions this unit can perform.

MethodSignatureWhat it does
setUpvoid setUp(int views, int cpm, int contentCost)No description in source.
monthlyRevenueint monthlyRevenue()No description in source.
monthlyCostint monthlyCost()No description in source.

BrokerageModel #sleela 2.5 (lib/character/BrokerageModel.sleela)

BrokerageModel class extends BusinessModel

BrokerageModel — stand between two parties who want to trade and charge a fee per trade for the privilege of your standing there. Revenue is trades x fee; cost is the clearing/compliance machinery that keeps the regulators calm. A concrete BusinessModel. Family: character.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Fields — the named values this unit stores.

FieldDeclarationWhat it holds
tradesint tradestrades executed this month
feePerTradeCentsint feePerTradeCentscommission per trade
clearingCostCentsint clearingCostCentsclearing/settlement cost per trade
complianceCentsint complianceCentsmonthly fixed compliance overhead

Methods — the actions this unit can perform.

MethodSignatureWhat it does
setUpvoid setUp(int executed, int feePerTrade, int clearingCost, int compliance)No description in source.
monthlyRevenueint monthlyRevenue()No description in source.
monthlyCostint monthlyCost()No description in source.

BusinessModel #sleela 2.5 (lib/character/BusinessModel.sleela)

BusinessModel class

Defines BusinessModel, the language-neutral base contract a developer extends to describe how a Character actually makes a living. It is the heart of the character package's business-model family: every concrete model (subscription, freemium, marketplace, advertising, retail, wholesale, franchise, licensing, SaaS, consulting, manufacturing, brokerage) subclasses it and overrides the revenue math. A new model is created exactly like a compiler front end in lib/compiler: subclass BusinessModel, call configure() to declare identity, and override monthlyRevenue()/monthlyCost() with the model's own economics. The base implementations are deliberate no-ops that report "nothing yet", so an un-overridden model is honest rather than magical. BusinessModel is a NATURAL / LOADABLE MODULE sharing the common module contract (load / loaded / moduleName / describe). It holds model state only; a Character owns one and asks it, each month, "so — did we make money?". Family: character. Settlement crosses an explicit bridge to the ledger.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Fields — the named values this unit stores.

FieldDeclarationWhat it holds
MODULEstatic final String MODULE = "BusinessModel"No description in source.
KIND_NONEstatic final int KIND_NONE = 0Model archetypes, so a Character can say what it is without a pitch deck.
KIND_SUBSCRIPTIONstatic final int KIND_SUBSCRIPTION = 1No description in source.
KIND_FREEMIUMstatic final int KIND_FREEMIUM = 2No description in source.
KIND_MARKETPLACEstatic final int KIND_MARKETPLACE = 3No description in source.
KIND_ADVERTISINGstatic final int KIND_ADVERTISING = 4No description in source.
KIND_RETAILstatic final int KIND_RETAIL = 5No description in source.
KIND_WHOLESALEstatic final int KIND_WHOLESALE = 6No description in source.
KIND_FRANCHISEstatic final int KIND_FRANCHISE = 7No description in source.
KIND_LICENSINGstatic final int KIND_LICENSING = 8No description in source.
KIND_SAASstatic final int KIND_SAAS = 9No description in source.
KIND_CONSULTINGstatic final int KIND_CONSULTING = 10No description in source.
KIND_MANUFACTURINGstatic final int KIND_MANUFACTURING = 11No description in source.
KIND_BROKERAGEstatic final int KIND_BROKERAGE = 12No description in source.
loadedFlagint loadedFlag1 once the module is loaded
modelNameString modelNamehuman-readable, e.g. "Subscription"
kindint kindone of KIND_*
unitsCentsint unitsCentsthe model's primary quantity (seats, items, listings)
configuredboolean configuredtrue once a subclass has declared identity

Methods — the actions this unit can perform.

MethodSignatureWhat it does
loadvoid load()--- loadable-module contract ------------------------------------------
loadedboolean loaded()No description in source.
moduleNameString moduleName()No description in source.
configurevoid configure(String name, int modelKind)A subclass calls this from its own setup to declare identity. Mirrors the declare()/configure() pattern used by the lib/compiler front ends.
setUnitsvoid setUnits(int n)The model's primary driver — seats, items sold, listings, billable hours. Expressed as a plain count; subclasses decide what it means.
monthlyRevenueint monthlyRevenue()--- revenue hooks. Base implementations report "nothing yet"; a concrete model overrides these with its own economics. All amounts are whole cents.
monthlyCostint monthlyCost()No description in source.
monthlyProfitint monthlyProfit()Profit is the same arithmetic for every model, so the base owns it and no subclass has to repeat it. This is the one honest law of business.
profitableboolean profitable()No description in source.
readyboolean ready()No description in source.
modelKindint modelKind()No description in source.
nameString name()No description in source.
unitsint units()No description in source.
ynString yn(boolean b)Render a boolean as a word so describe() concatenates only Strings/ints, matching the proven /lib describe() idiom.
describeString describe()No description in source.

Character #sleela 2.5 (lib/character/Character.sleela)

Character class

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Fields — the named values this unit stores.

FieldDeclarationWhat it holds
MODULEstatic final String MODULE = "Character"No description in source.
loadedFlagint loadedFlagNo description in source.
nameString nameNo description in source.
taglineString taglineNo description in source.
gritint gritNo description in source.
reputationint reputationNo description in source.
cashCentsint cashCentsNo description in source.
modelBusinessModel modelNo description in source.
intelligenceint intelligenceOptional life-capability profile. Scale: 1..30; 0 = unknown.
creativityint creativityNo description in source.
systemsThinkingint systemsThinkingNo description in source.
technicalInnovationint technicalInnovationNo description in source.
executionint executionNo description in source.
explorationint explorationNo description in source.
collaborationint collaborationNo description in source.
resilienceint resilienceNo description in source.
sustainabilityint sustainabilityNo description in source.
capabilityProfileStatusString capabilityProfileStatusNo description in source.
capabilityProfileSourceString capabilityProfileSourceNo description in source.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
loadvoid load()No description in source.
loadedboolean loaded()No description in source.
moduleNameString moduleName()No description in source.
introducevoid introduce(String who, String pitch, int startingGrit, int startingCash)No description in source.
adoptvoid adopt(BusinessModel chosen)No description in source.
hasModelboolean hasModel()No description in source.
liveAMonthint liveAMonth()No description in source.
runMonthsint runMonths(int months)No description in source.
setLifeCapabilitiesboolean setLifeCapabilities(int intel, int create, int systems, int innovation,Zero explicitly represents an unknown stat; populated scores use 1..30.
validStatboolean validStat(int value)No description in source.
intelligenceModifierint intelligenceModifier()Classic ability-score modifier; a game/simulation convention only.
intelligencePlanningIndexint intelligencePlanningIndex()Normalized planning index, not measured human cognitive throughput. INT 10 -> 100; each point above/below 10 shifts index by five.
floorHalfint floorHalf(int value)No description in source.
hasLifeCapabilitiesboolean hasLifeCapabilities()No description in source.
stillStandingboolean stillStanding()No description in source.
thrivingboolean thriving()No description in source.
cashint cash()No description in source.
reputationScoreint reputationScore()No description in source.
gritScoreint gritScore()No description in source.
characterNameString characterName()No description in source.
modelKindint modelKind()No description in source.
modelNameString modelName()No description in source.
clampint clamp(int v)No description in source.
ynString yn(boolean b)No description in source.
describeString describe()No description in source.

CharacterAbilityStats #sleela 2.5 (lib/character/CharacterAbilityStats.sleela)

CharacterAbilityStats class

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Fields — the named values this unit stores.

FieldDeclarationWhat it holds
STRint STRNo description in source.
DEXint DEXNo description in source.
CONint CONNo description in source.
INTint INTNo description in source.
WISint WISNo description in source.
CHAint CHANo description in source.
LCKint LCKNo description in source.
PERint PERNo description in source.
WILLint WILLNo description in source.
SPIint SPINo description in source.
TECint TECNo description in source.
CRAFTint CRAFTNo description in source.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
abilityModifierint abilityModifier(int score)No description in source.
strengthModifierint strengthModifier()No description in source.
dexterityModifierint dexterityModifier()No description in source.
constitutionModifierint constitutionModifier()No description in source.
intelligenceModifierint intelligenceModifier()No description in source.
wisdomModifierint wisdomModifier()No description in source.
charismaModifierint charismaModifier()No description in source.

CharacterBodyStats #sleela 2.5 (lib/character/CharacterBodyStats.sleela)

CharacterBodyStats class

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Fields — the named values this unit stores.

FieldDeclarationWhat it holds
heightint heightNo description in source.
weightint weightNo description in source.
reachint reachNo description in source.
jumpHeightint jumpHeightNo description in source.
fallResistanceint fallResistanceNo description in source.
swimSpeedint swimSpeedNo description in source.
climbSpeedint climbSpeedNo description in source.
flightSpeedint flightSpeedNo description in source.
encumbranceint encumbranceNo description in source.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
canSwimint canSwim()No description in source.
canFlyint canFly()No description in source.

CharacterCombatStats #sleela 2.5 (lib/character/CharacterCombatStats.sleela)

CharacterCombatStats class

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Fields — the named values this unit stores.

FieldDeclarationWhat it holds
attackPowerint attackPowerNo description in source.
spellPowerint spellPowerNo description in source.
rangedPowerint rangedPowerNo description in source.
defenseint defenseNo description in source.
armorClassint armorClassNo description in source.
magicDefenseint magicDefenseNo description in source.
initiativeint initiativeNo description in source.
accuracyint accuracyNo description in source.
criticalChanceint criticalChanceNo description in source.
criticalMultiplierint criticalMultiplierNo description in source.
evasionint evasionNo description in source.
blockChanceint blockChanceNo description in source.
parryChanceint parryChanceNo description in source.
dodgeChanceint dodgeChanceNo description in source.
attackSpeedint attackSpeedNo description in source.
castSpeedint castSpeedNo description in source.
movementSpeedint movementSpeedNo description in source.
actionPointsint actionPointsNo description in source.
maxActionPointsint maxActionPointsNo description in source.
reactionPointsint reactionPointsNo description in source.
maxReactionPointsint maxReactionPointsNo description in source.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
canActint canAct()No description in source.
canReactint canReact()No description in source.

CharacterConditionStats #sleela 2.5 (lib/character/CharacterConditionStats.sleela)

CharacterConditionStats class

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Fields — the named values this unit stores.

FieldDeclarationWhat it holds
hungerint hungerNo description in source.
thirstint thirstNo description in source.
fatigueint fatigueNo description in source.
stressint stressNo description in source.
moraleint moraleNo description in source.
temperatureint temperatureNo description in source.
cleanlinessint cleanlinessNo description in source.
sleepDebtint sleepDebtNo description in source.
sanityint sanityNo description in source.
corruptionint corruptionNo description in source.
infectionint infectionNo description in source.
intoxicationint intoxicationNo description in source.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
needsRestint needsRest()No description in source.
isUnderStressint isUnderStress()No description in source.

CharacterDemo #sleela 2.5 (lib/character/seem/CharacterDemo.sleela)

CharacterDemo class

Casts three Characters, hands each a different BusinessModel, and runs a quarter of business. It shows the whole point of the package: one Character class composing many business-model classes through a single base-typed reference, each answering the same question — did we make money? — with entirely different math. The authoritative definitions (Character, BusinessModel, and the twelve concrete business-model subclasses) live one level up in lib/character/*.sleela. Family: character.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
mainvoid main()No description in source.

CharacterEconomyStats #sleela 2.5 (lib/character/CharacterEconomyStats.sleela)

CharacterEconomyStats class

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Fields — the named values this unit stores.

FieldDeclarationWhat it holds
carryCapacityint carryCapacityNo description in source.
carriedWeightint carriedWeightNo description in source.
inventoryCapacityint inventoryCapacityNo description in source.
equipmentSlotsint equipmentSlotsNo description in source.
goldint goldNo description in source.
silverint silverNo description in source.
copperint copperNo description in source.
reputationint reputationNo description in source.
notorietyint notorietyNo description in source.
factionStandingint factionStandingNo description in source.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
isOverburdenedint isOverburdened()No description in source.
hasCurrencyint hasCurrency()No description in source.

CharacterExplorationStats #sleela 2.5 (lib/character/CharacterExplorationStats.sleela)

CharacterExplorationStats class

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Fields — the named values this unit stores.

FieldDeclarationWhat it holds
perceptionint perceptionNo description in source.
insightint insightNo description in source.
investigationint investigationNo description in source.
stealthint stealthNo description in source.
survivalint survivalNo description in source.
trackingint trackingNo description in source.
lockpickingint lockpickingNo description in source.
disarmTrapsint disarmTrapsNo description in source.
persuasionint persuasionNo description in source.
deceptionint deceptionNo description in source.
intimidationint intimidationNo description in source.
performanceint performanceNo description in source.
animalHandlingint animalHandlingNo description in source.
medicineint medicineNo description in source.
navigationint navigationNo description in source.
luckCheckint luckCheckNo description in source.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
canDetectint canDetect(int difficulty)No description in source.

CharacterIdentityStats #sleela 2.5 (lib/character/CharacterIdentityStats.sleela)

CharacterIdentityStats class

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Fields — the named values this unit stores.

FieldDeclarationWhat it holds
characterIdstring characterIdNo description in source.
characterNamestring characterNameNo description in source.
characterClassstring characterClassNo description in source.
characterRacestring characterRaceNo description in source.
characterArchetypestring characterArchetypeNo description in source.
levelint levelNo description in source.
experiencelong experienceNo description in source.
experienceToNextLevellong experienceToNextLevelNo description in source.
proficiencyBonusint proficiencyBonusNo description in source.
alignmentint alignmentNo description in source.
ageint ageNo description in source.
lifespanint lifespanNo description in source.
schemaVersionint schemaVersionNo description in source.
rulesetIdint rulesetIdNo description in source.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
isVeteranint isVeteran()No description in source.
hasIdentityint hasIdentity()No description in source.

CharacterResistanceStats #sleela 2.5 (lib/character/CharacterResistanceStats.sleela)

CharacterResistanceStats class

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Fields — the named values this unit stores.

FieldDeclarationWhat it holds
saveStrengthint saveStrengthNo description in source.
saveDexterityint saveDexterityNo description in source.
saveConstitutionint saveConstitutionNo description in source.
saveIntelligenceint saveIntelligenceNo description in source.
saveWisdomint saveWisdomNo description in source.
saveCharismaint saveCharismaNo description in source.
physicalResistanceint physicalResistanceNo description in source.
magicalResistanceint magicalResistanceNo description in source.
poisonResistanceint poisonResistanceNo description in source.
diseaseResistanceint diseaseResistanceNo description in source.
fireResistanceint fireResistanceNo description in source.
coldResistanceint coldResistanceNo description in source.
lightningResistanceint lightningResistanceNo description in source.
acidResistanceint acidResistanceNo description in source.
necroticResistanceint necroticResistanceNo description in source.
radiantResistanceint radiantResistanceNo description in source.
psychicResistanceint psychicResistanceNo description in source.
forceResistanceint forceResistanceNo description in source.
bleedResistanceint bleedResistanceNo description in source.
stunResistanceint stunResistanceNo description in source.
fearResistanceint fearResistanceNo description in source.
charmResistanceint charmResistanceNo description in source.
curseResistanceint curseResistanceNo description in source.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
hasAnyResistanceint hasAnyResistance()No description in source.

CharacterSkillStats #sleela 2.5 (lib/character/CharacterSkillStats.sleela)

CharacterSkillStats class

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Fields — the named values this unit stores.

FieldDeclarationWhat it holds
athleticsint athleticsNo description in source.
acrobaticsint acrobaticsNo description in source.
sleightOfHandint sleightOfHandNo description in source.
arcanaint arcanaNo description in source.
historyint historyNo description in source.
natureint natureNo description in source.
religionint religionNo description in source.
craftingint craftingNo description in source.
alchemyint alchemyNo description in source.
engineeringint engineeringNo description in source.
computingint computingNo description in source.
diplomacyint diplomacyNo description in source.
bargainingint bargainingNo description in source.
leadershipint leadershipNo description in source.
cookingint cookingNo description in source.
fishingint fishingNo description in source.
huntingint huntingNo description in source.
miningint miningNo description in source.
farmingint farmingNo description in source.
ridingint ridingNo description in source.
swimmingint swimmingNo description in source.
climbingint climbingNo description in source.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
hasTradeSkillint hasTradeSkill()No description in source.

CharacterSocialStats #sleela 2.5 (lib/character/CharacterSocialStats.sleela)

CharacterSocialStats class

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Fields — the named values this unit stores.

FieldDeclarationWhat it holds
socialStandingint socialStandingNo description in source.
fameint fameNo description in source.
infamyint infamyNo description in source.
knowledgeint knowledgeNo description in source.
languagesKnownint languagesKnownNo description in source.
companionsLimitint companionsLimitNo description in source.
commandLimitint commandLimitNo description in source.
relationshipScoreint relationshipScoreNo description in source.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
canLeadCompanionsint canLeadCompanions()No description in source.
hasLanguagesint hasLanguages()No description in source.

CharacterStateStats #sleela 2.5 (lib/character/CharacterStateStats.sleela)

CharacterStateStats class

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Fields — the named values this unit stores.

FieldDeclarationWhat it holds
aliveint aliveNo description in source.
consciousint consciousNo description in source.
incapacitatedint incapacitatedNo description in source.
hostileint hostileNo description in source.
playerControlledint playerControlledNo description in source.
summonedint summonedNo description in source.
undeadint undeadNo description in source.
constructint constructNo description in source.
bossint bossNo description in source.
eliteint eliteNo description in source.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
isAliveint isAlive()No description in source.
isConsciousint isConscious()No description in source.

CharacterStats #sleela 2.5 (lib/character/seem/CharacterStats.sleela)

CharacterStats class

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Fields — the named values this unit stores.

FieldDeclarationWhat it holds
characterIdstring characterIdIdentity and progression
characterNamestring characterNameNo description in source.
characterClassstring characterClassNo description in source.
characterRacestring characterRaceNo description in source.
characterArchetypestring characterArchetypeNo description in source.
levelint levelNo description in source.
experienceint experienceNo description in source.
experienceToNextLevelint experienceToNextLevelNo description in source.
proficiencyBonusint proficiencyBonusNo description in source.
alignmentint alignmentNo description in source.
STRint STRSix primary abilities STR Strength: force, lifting, melee power
DEXint DEXDEX Dexterity: agility, precision, reflexes
CONint CONCON Constitution: endurance and resilience
INTint INTINT Intelligence: reasoning, memory, learned knowledge
WISint WISWIS Wisdom: awareness, intuition, judgment
CHAint CHACHA Charisma: presence, persuasion, leadership
LCKint LCKOptional expanded abilities LCK Luck
PERint PERPER Perception / sensory awareness
WILLint WILLWILL Willpower and mental resistance
SPIint SPISPI Spirit / spiritual affinity
TECint TECTEC Technical aptitude
CRAFTint CRAFTCRAFT Crafting aptitude
healthint healthCore survival pools
maxHealthint maxHealthNo description in source.
healthRegenint healthRegenNo description in source.
manaint manaNo description in source.
maxManaint maxManaNo description in source.
manaRegenint manaRegenNo description in source.
staminaint staminaNo description in source.
maxStaminaint maxStaminaNo description in source.
staminaRegenint staminaRegenNo description in source.
shieldint shieldNo description in source.
maxShieldint maxShieldNo description in source.
barrierint barrierNo description in source.
maxBarrierint maxBarrierNo description in source.
attackPowerint attackPowerCombat and action economy
spellPowerint spellPowerNo description in source.
rangedPowerint rangedPowerNo description in source.
defenseint defenseNo description in source.
armorClassint armorClassNo description in source.
magicDefenseint magicDefenseNo description in source.
initiativeint initiativeNo description in source.
accuracyint accuracyNo description in source.
criticalChanceint criticalChanceNo description in source.
criticalMultiplierint criticalMultiplierNo description in source.
evasionint evasionNo description in source.
blockChanceint blockChanceNo description in source.
parryChanceint parryChanceNo description in source.
dodgeChanceint dodgeChanceNo description in source.
attackSpeedint attackSpeedNo description in source.
castSpeedint castSpeedNo description in source.
movementSpeedint movementSpeedNo description in source.
actionPointsint actionPointsNo description in source.
maxActionPointsint maxActionPointsNo description in source.
reactionPointsint reactionPointsNo description in source.
maxReactionPointsint maxReactionPointsNo description in source.
saveStrengthint saveStrengthSaving throws and resistance scores
saveDexterityint saveDexterityNo description in source.
saveConstitutionint saveConstitutionNo description in source.
saveIntelligenceint saveIntelligenceNo description in source.
saveWisdomint saveWisdomNo description in source.
saveCharismaint saveCharismaNo description in source.
physicalResistanceint physicalResistanceNo description in source.
magicalResistanceint magicalResistanceNo description in source.
poisonResistanceint poisonResistanceNo description in source.
diseaseResistanceint diseaseResistanceNo description in source.
fireResistanceint fireResistanceNo description in source.
coldResistanceint coldResistanceNo description in source.
lightningResistanceint lightningResistanceNo description in source.
acidResistanceint acidResistanceNo description in source.
necroticResistanceint necroticResistanceNo description in source.
radiantResistanceint radiantResistanceNo description in source.
psychicResistanceint psychicResistanceNo description in source.
forceResistanceint forceResistanceNo description in source.
bleedResistanceint bleedResistanceNo description in source.
stunResistanceint stunResistanceNo description in source.
fearResistanceint fearResistanceNo description in source.
charmResistanceint charmResistanceNo description in source.
curseResistanceint curseResistanceNo description in source.
perceptionint perceptionExploration and interaction
insightint insightNo description in source.
investigationint investigationNo description in source.
stealthint stealthNo description in source.
survivalint survivalNo description in source.
trackingint trackingNo description in source.
lockpickingint lockpickingNo description in source.
disarmTrapsint disarmTrapsNo description in source.
persuasionint persuasionNo description in source.
deceptionint deceptionNo description in source.
intimidationint intimidationNo description in source.
performanceint performanceNo description in source.
animalHandlingint animalHandlingNo description in source.
medicineint medicineNo description in source.
navigationint navigationNo description in source.
luckCheckint luckCheckNo description in source.
athleticsint athleticsSkills: systems may use these as ranks, bonuses, or proficiency values
acrobaticsint acrobaticsNo description in source.
sleightOfHandint sleightOfHandNo description in source.
arcanaint arcanaNo description in source.
historyint historyNo description in source.
natureint natureNo description in source.
religionint religionNo description in source.
craftingint craftingNo description in source.
alchemyint alchemyNo description in source.
engineeringint engineeringNo description in source.
computingint computingNo description in source.
diplomacyint diplomacyNo description in source.
bargainingint bargainingNo description in source.
leadershipint leadershipNo description in source.
cookingint cookingNo description in source.
fishingint fishingNo description in source.
huntingint huntingNo description in source.
miningint miningNo description in source.
farmingint farmingNo description in source.
ridingint ridingNo description in source.
swimmingint swimmingNo description in source.
climbingint climbingNo description in source.
carryCapacityint carryCapacityCarrying capacity, economy, and equipment
carriedWeightint carriedWeightNo description in source.
inventoryCapacityint inventoryCapacityNo description in source.
equipmentSlotsint equipmentSlotsNo description in source.
goldint goldNo description in source.
silverint silverNo description in source.
copperint copperNo description in source.
reputationint reputationNo description in source.
notorietyint notorietyNo description in source.
factionStandingint factionStandingNo description in source.
heightint heightBody and movement
weightint weightNo description in source.
reachint reachNo description in source.
jumpHeightint jumpHeightNo description in source.
fallResistanceint fallResistanceNo description in source.
swimSpeedint swimSpeedNo description in source.
climbSpeedint climbSpeedNo description in source.
flightSpeedint flightSpeedNo description in source.
encumbranceint encumbranceNo description in source.
hungerint hungerNeeds and long-duration condition (game-defined scales)
thirstint thirstNo description in source.
fatigueint fatigueNo description in source.
stressint stressNo description in source.
moraleint moraleNo description in source.
temperatureint temperatureNo description in source.
cleanlinessint cleanlinessNo description in source.
sleepDebtint sleepDebtNo description in source.
sanityint sanityNo description in source.
corruptionint corruptionNo description in source.
infectionint infectionNo description in source.
intoxicationint intoxicationNo description in source.
socialStandingint socialStandingSocial, knowledge, and reputation
fameint fameNo description in source.
infamyint infamyNo description in source.
knowledgeint knowledgeNo description in source.
languagesKnownint languagesKnownNo description in source.
companionsLimitint companionsLimitNo description in source.
commandLimitint commandLimitNo description in source.
relationshipScoreint relationshipScoreNo description in source.
ageint ageLifetime and current state
lifespanint lifespanNo description in source.
aliveint aliveNo description in source.
consciousint consciousNo description in source.
incapacitatedint incapacitatedNo description in source.
hostileint hostileNo description in source.
playerControlledint playerControlledNo description in source.
summonedint summonedNo description in source.
undeadint undeadNo description in source.
constructint constructNo description in source.
bossint bossNo description in source.
eliteint eliteNo description in source.
schemaVersionint schemaVersionVersioned rules metadata
rulesetIdint rulesetIdNo description in source.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
abilityModifierint abilityModifier(int score)No description in source.
strengthModifierint strengthModifier()No description in source.
dexterityModifierint dexterityModifier()No description in source.
constitutionModifierint constitutionModifier()No description in source.
intelligenceModifierint intelligenceModifier()No description in source.
wisdomModifierint wisdomModifier()No description in source.
charismaModifierint charismaModifier()No description in source.
isAliveint isAlive()No description in source.
isConsciousint isConscious()No description in source.
restoreHealthvoid restoreHealth(int amount)No description in source.
restoreManavoid restoreMana(int amount)No description in source.
restoreStaminavoid restoreStamina(int amount)No description in source.
applyDamagevoid applyDamage(int amount)No description in source.
normalizePoolsvoid normalizePools()No description in source.

CharacterSurvivalStats #sleela 2.5 (lib/character/CharacterSurvivalStats.sleela)

CharacterSurvivalStats class

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Fields — the named values this unit stores.

FieldDeclarationWhat it holds
healthint healthNo description in source.
maxHealthint maxHealthNo description in source.
healthRegenint healthRegenNo description in source.
manaint manaNo description in source.
maxManaint maxManaNo description in source.
manaRegenint manaRegenNo description in source.
staminaint staminaNo description in source.
maxStaminaint maxStaminaNo description in source.
staminaRegenint staminaRegenNo description in source.
shieldint shieldNo description in source.
maxShieldint maxShieldNo description in source.
barrierint barrierNo description in source.
maxBarrierint maxBarrierNo description in source.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
normalizevoid normalize()No description in source.

ConsultingModel #sleela 2.5 (lib/character/ConsultingModel.sleela)

ConsultingModel class extends BusinessModel

ConsultingModel — sell time, dressed up as insight. Revenue is billable hours x rate, bounded by the brutal truth that there are only so many hours and consultants insist on sleeping some of them. A concrete BusinessModel: revenue scales with utilization, not headcount alone; cost is the consultants' salaries whether or not they billed. Family: character.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Fields — the named values this unit stores.

FieldDeclarationWhat it holds
consultantsint consultantspeople who can bill
billableHoursint billableHourstotal hours actually billed this month
rateCentsint rateCentsbilling rate per hour
salaryPerHeadCentsint salaryPerHeadCentsmonthly salary cost per consultant

Methods — the actions this unit can perform.

MethodSignatureWhat it does
setUpvoid setUp(int heads, int hours, int rate, int salaryPerHead)No description in source.
utilizationPercentint utilizationPercent()Utilization as a percent of a nominal 160-hour month across all heads.
monthlyRevenueint monthlyRevenue()No description in source.
monthlyCostint monthlyCost()No description in source.

FranchiseModel #sleela 2.5 (lib/character/FranchiseModel.sleela)

FranchiseModel class extends BusinessModel

FranchiseModel — don't run the shops; rent out the right to BE the shop. Revenue is an ongoing royalty on each franchisee's sales plus a one-time fee amortized across the month, and the brand does the rest. A concrete BusinessModel. Family: character.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Fields — the named values this unit stores.

FieldDeclarationWhat it holds
outletsint outletsfranchised locations
avgOutletSalesCentsint avgOutletSalesCentsaverage monthly sales per outlet
royaltyPercentint royaltyPercentthe franchisor's royalty (0..100)
supportCostCentsint supportCostCentsmonthly cost to support one outlet

Methods — the actions this unit can perform.

MethodSignatureWhat it does
setUpvoid setUp(int locations, int avgSales, int royalty, int supportCost)No description in source.
networkSalesint networkSales()Total sales across the whole brand this month.
monthlyRevenueint monthlyRevenue()No description in source.
monthlyCostint monthlyCost()No description in source.

FreemiumModel #sleela 2.5 (lib/character/FreemiumModel.sleela)

FreemiumModel class extends BusinessModel

FreemiumModel — a large crowd uses the product for free, a small fraction converts to paid, and that fraction quietly funds everyone else. The business of giving most of it away on purpose. A concrete BusinessModel: revenue comes only from the converted fraction; cost scales with the whole free-plus-paid population. Family: character.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Fields — the named values this unit stores.

FieldDeclarationWhat it holds
freeUsersint freeUsersthe generous majority
conversionPercentint conversionPercentshare of free users who go paid (0..100)
priceCentsint priceCentsmonthly price for a converted user
serveCostCentsint serveCostCentscost to serve ONE user (free or paid) per month

Methods — the actions this unit can perform.

MethodSignatureWhat it does
setUpvoid setUp(int free, int conversion, int price, int serveCost)No description in source.
paidUsersint paidUsers()No description in source.
totalUsersint totalUsers()No description in source.
monthlyRevenueint monthlyRevenue()No description in source.
monthlyCostint monthlyCost()No description in source.

GeorgeLucasLifeStats #sleela 2.5 (lib/character/george-lucas/GeorgeLucasLifeStats.sleela)

GeorgeLucasLifeStats class

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Fields — the named values this unit stores.

FieldDeclarationWhat it holds
subjectNameString subjectNameNo description in source.
scaleDefinitionString scaleDefinitionNo description in source.
profileStatusString profileStatusNo description in source.
evidenceNoteString evidenceNoteNo description in source.
sourceUrlString sourceUrlNo description in source.
scenarioIntelligenceint scenarioIntelligenceNo description in source.
scenarioCreativityint scenarioCreativityNo description in source.
scenarioSystemsThinkingint scenarioSystemsThinkingNo description in source.
scenarioTechnicalInnovationint scenarioTechnicalInnovationNo description in source.
scenarioExecutionint scenarioExecutionNo description in source.
scenarioExplorationint scenarioExplorationNo description in source.
scenarioCollaborationint scenarioCollaborationNo description in source.
scenarioResilienceint scenarioResilienceNo description in source.
sustainabilityint sustainabilityNo description in source.
publicCareerYearsint publicCareerYearsNo description in source.
majorProfessionalDomainsint majorProfessionalDomainsNo description in source.
dataConfidenceint dataConfidenceNo description in source.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
loadvoid load()No description in source.
intelligenceModifierint intelligenceModifier()No description in source.
intelligencePlanningIndexint intelligencePlanningIndex()No description in source.
creativeSystemsIndexint creativeSystemsIndex()No description in source.
careerLeverageIndexint careerLeverageIndex()Weighted scenario index, not a validated real-world measurement. Weights: creativity 25%, systems 20%, innovation 20%, execution 20%, exploration 10%, collaboration 5%; components use a 1..30 scale.
floorHalfint floorHalf(int value)No description in source.
validStatboolean validStat(int value)No description in source.
setScenarioStatsboolean setScenarioStats(int intel, int create, int systems, int innovation,No description in source.
reportString report()No description in source.

JamesCameronAdvancedTrace #sleela 2.5 (lib/character/james-cameron/JamesCameronAdvancedTrace.sleela)

JamesCameronAdvancedTrace class

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Fields — the named values this unit stores.

FieldDeclarationWhat it holds
recordCountint recordCountNo description in source.
sourcedCountint sourcedCountNo description in source.
verifiedCountint verifiedCountNo description in source.
hypotheticalStatCountint hypotheticalStatCountNo description in source.
unknownMetricCountint unknownMetricCountNo description in source.
traceLabelString traceLabelNo description in source.
scopeNoteString scopeNoteNo description in source.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
loadvoid load()No description in source.
addRecordvoid addRecord(boolean hasSource, boolean verified)No description in source.
addHypotheticalStatvoid addHypotheticalStat()No description in source.
addUnknownMetricvoid addUnknownMetric()No description in source.
readyForReviewboolean readyForReview()No description in source.
recordsint records()No description in source.
sourcedRecordsint sourcedRecords()No description in source.
verifiedRecordsint verifiedRecords()No description in source.
hypotheticalStatsint hypotheticalStats()No description in source.
unknownMetricsint unknownMetrics()No description in source.
reportString report()No description in source.

JamesCameronHuman #sleela 2.5 (lib/character/james-cameron/JamesCameronHuman.sleela)

JamesCameronHuman class

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Fields — the named values this unit stores.

FieldDeclarationWhat it holds
fullNameString fullNameNo description in source.
professionString professionNo description in source.
publicProfileNoteString publicProfileNoteNo description in source.
sourceUrlString sourceUrlNo description in source.
verifiedboolean verifiedNo description in source.
capabilityModelStatusString capabilityModelStatusNo description in source.
capabilityModelNoteString capabilityModelNoteNo description in source.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
loadvoid load()No description in source.
setSourcevoid setSource(String url)No description in source.
setVerificationvoid setVerification(boolean value)No description in source.
nameString name()No description in source.
occupationString occupation()No description in source.
hasSourceboolean hasSource()No description in source.
isVerifiedboolean isVerified()No description in source.

JamesCameronHumanEvent #sleela 2.5 (lib/character/james-cameron/JamesCameronHumanEvent.sleela)

JamesCameronHumanEvent class

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Fields — the named values this unit stores.

FieldDeclarationWhat it holds
eventIdString eventIdNo description in source.
eventTypeString eventTypeNo description in source.
eventDateString eventDateNo description in source.
publicDescriptionString publicDescriptionNo description in source.
sourceUrlString sourceUrlNo description in source.
publicationDateString publicationDateNo description in source.
verificationStatusString verificationStatusNo description in source.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
loadvoid load()No description in source.
configurevoid configure(String id, String type, String date, String description,No description in source.
hasSourceboolean hasSource()No description in source.
markVerifiedboolean markVerified()No description in source.
statusString status()No description in source.
dateString date()No description in source.

JamesCameronLifeStats #sleela 2.5 (lib/character/james-cameron/JamesCameronLifeStats.sleela)

JamesCameronLifeStats class

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Fields — the named values this unit stores.

FieldDeclarationWhat it holds
subjectNameString subjectNameNo description in source.
scaleDefinitionString scaleDefinitionNo description in source.
profileStatusString profileStatusNo description in source.
evidenceNoteString evidenceNoteNo description in source.
sourceUrlString sourceUrlNo description in source.
scenarioIntelligenceint scenarioIntelligenceNo description in source.
scenarioCreativityint scenarioCreativityNo description in source.
scenarioSystemsThinkingint scenarioSystemsThinkingNo description in source.
scenarioTechnicalInnovationint scenarioTechnicalInnovationNo description in source.
scenarioExecutionint scenarioExecutionNo description in source.
scenarioExplorationint scenarioExplorationNo description in source.
scenarioCollaborationint scenarioCollaborationNo description in source.
scenarioResilienceint scenarioResilienceNo description in source.
sustainabilityint sustainabilityNo description in source.
publicCareerYearsint publicCareerYearsNo description in source.
majorProfessionalDomainsint majorProfessionalDomainsNo description in source.
academyAwardsPersonallyWonint academyAwardsPersonallyWonNo description in source.
billionDollarFilmsint billionDollarFilmsNo description in source.
dataConfidenceint dataConfidenceNo description in source.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
loadvoid load()No description in source.
setPublicCareerMetricsboolean setPublicCareerMetrics(int years, int domains, int awards, int billionFilms,No description in source.
intelligenceModifierint intelligenceModifier()No description in source.
intelligencePlanningIndexint intelligencePlanningIndex()No description in source.
creativeSystemsIndexint creativeSystemsIndex()No description in source.
careerLeverageIndexint careerLeverageIndex()Weighted career-leverage scenario index (0..100), not a real-world measure. Weights: creativity 25%, systems 20%, innovation 20%, execution 20%, exploration 10%, collaboration 5%; all component scores use 1..30.
floorHalfint floorHalf(int value)No description in source.
hasVerifiedCareerMetricsboolean hasVerifiedCareerMetrics()No description in source.
reportString report()No description in source.

LicensingModel #sleela 2.5 (lib/character/LicensingModel.sleela)

LicensingModel class extends BusinessModel

LicensingModel — own the idea, let others do the sweating. The Character licenses intellectual property and collects a royalty per licensed unit sold by someone else, with almost no marginal cost of its own. A concrete BusinessModel: wonderfully cheap to run, entirely dependent on the licensee's hustle. Family: character.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Fields — the named values this unit stores.

FieldDeclarationWhat it holds
licensedUnitsint licensedUnitsunits the licensees sold this month
royaltyPerUnitCentsint royaltyPerUnitCentsroyalty collected per licensed unit
ipUpkeepCentsint ipUpkeepCentsmonthly cost to maintain/defend the IP

Methods — the actions this unit can perform.

MethodSignatureWhat it does
setUpvoid setUp(int unitsLicensed, int royaltyPerUnit, int ipUpkeep)No description in source.
monthlyRevenueint monthlyRevenue()No description in source.
monthlyCostint monthlyCost()No description in source.

ManufacturingModel #sleela 2.5 (lib/character/ManufacturingModel.sleela)

ManufacturingModel class extends BusinessModel

ManufacturingModel — make the physical thing at scale. Revenue is units shipped x wholesale price; cost is variable material/labor per unit plus a large, stubborn fixed cost for the factory that does not care whether the line ran today. A concrete BusinessModel: the fixed cost is the drama; volume is the cure. Family: character.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Fields — the named values this unit stores.

FieldDeclarationWhat it holds
unitsProducedint unitsProducedunits shipped this month
wholesalePriceCentsint wholesalePriceCentsprice per unit to the buyer
variableCostCentsint variableCostCentsmaterial + labor per unit
fixedPlantCentsint fixedPlantCentsmonthly fixed factory cost (regardless of volume)

Methods — the actions this unit can perform.

MethodSignatureWhat it does
setUpvoid setUp(int produced, int wholesalePrice, int variableCost, int fixedPlant)No description in source.
breakEvenUnitsint breakEvenUnits()Break-even volume: units needed to cover the fixed plant cost alone.
monthlyRevenueint monthlyRevenue()No description in source.
monthlyCostint monthlyCost()No description in source.

MarketplaceModel #sleela 2.5 (lib/character/MarketplaceModel.sleela)

MarketplaceModel class extends BusinessModel

MarketplaceModel — the Character owns neither the goods nor the buyers; it owns the handshake, and takes a cut of every one. Revenue is a commission on gross merchandise value (GMV). A concrete BusinessModel: revenue = GMV x take-rate; cost scales with the number of transactions it has to shepherd. Family: character.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Fields — the named values this unit stores.

FieldDeclarationWhat it holds
transactionsint transactionsdeals brokered this month
avgOrderCentsint avgOrderCentsaverage value of one order
takeRatePercentint takeRatePercentthe house's cut (0..100)
opCostCentsint opCostCentsoperating cost per transaction (support, fraud, etc.)

Methods — the actions this unit can perform.

MethodSignatureWhat it does
setUpvoid setUp(int txns, int avgOrder, int takeRate, int opCost)No description in source.
gmvint gmv()Gross merchandise value: everything that flowed through the marketplace.
monthlyRevenueint monthlyRevenue()No description in source.
monthlyCostint monthlyCost()No description in source.

RetailModel #sleela 2.5 (lib/character/RetailModel.sleela)

RetailModel class extends BusinessModel

RetailModel — buy a thing, mark it up, sell it to a person who wants it today. Revenue is units x retail price; cost is units x what you paid, plus the rent on the shop with the nice window. A concrete BusinessModel. Family: character.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Fields — the named values this unit stores.

FieldDeclarationWhat it holds
unitsSoldint unitsSolditems sold this month
retailPriceCentsint retailPriceCentsprice on the shelf
unitCostCentsint unitCostCentswhat the item cost to acquire
overheadCentsint overheadCentsmonthly rent/staff/lights

Methods — the actions this unit can perform.

MethodSignatureWhat it does
setUpvoid setUp(int sold, int retailPrice, int unitCost, int overhead)No description in source.
unitMarginint unitMargin()Margin per unit, in case anyone asks how thin it really is.
monthlyRevenueint monthlyRevenue()No description in source.
monthlyCostint monthlyCost()No description in source.

SaaSModel #sleela 2.5 (lib/character/SaaSModel.sleela)

SaaSModel class extends BusinessModel

SaaSModel — software as a service, billed per seat per month, priced across tiers. Like Subscription's more ambitious cousin: seats are split across a basic and a premium tier, each at its own price, and the cloud bill scales with the whole seat count. A concrete BusinessModel. Family: character.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Fields — the named values this unit stores.

FieldDeclarationWhat it holds
basicSeatsint basicSeatsseats on the basic tier
premiumSeatsint premiumSeatsseats on the premium tier
basicPriceCentsint basicPriceCentsmonthly price per basic seat
premiumPriceCentsint premiumPriceCentsmonthly price per premium seat
infraCostPerSeatCentsint infraCostPerSeatCentscloud/infra cost per seat per month

Methods — the actions this unit can perform.

MethodSignatureWhat it does
setUpvoid setUp(int basic, int premium, int basicPrice, int premiumPrice, int infraPerSeat)No description in source.
totalSeatsint totalSeats()No description in source.
monthlyRevenueint monthlyRevenue()No description in source.
monthlyCostint monthlyCost()No description in source.

SLPackage #sleela 2.5 (lib/character/SLPackage.sleela)

SLPackage class

Defines the SLeeLa standard-library package for character.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Fields — the named values this unit stores.

FieldDeclarationWhat it holds
packageNameString packageNameNo description in source.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
configurevoid configure(String name)No description in source.
nameString name()No description in source.
availableboolean available()No description in source.

SubscriptionModel #sleela 2.5 (lib/character/SubscriptionModel.sleela)

SubscriptionModel class extends BusinessModel

SubscriptionModel — recurring revenue from subscribers who each pay the same price every month and leave at a steady churn rate. The classic "predictable until it isn't" business. A concrete BusinessModel: subclass, declare identity in setUp(), and override the revenue/cost hooks. Revenue is subscribers x price, minus the ones who quietly cancelled this month. Family: character.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Fields — the named values this unit stores.

FieldDeclarationWhat it holds
subscribersint subscriberspaying seats right now
priceCentsint priceCentsmonthly price per subscriber
churnPercentint churnPercentshare who cancel each month (0..100)
serviceCostCentsint serviceCostCentscost to serve one subscriber per month

Methods — the actions this unit can perform.

MethodSignatureWhat it does
setUpvoid setUp(int seats, int price, int churn, int serviceCost)No description in source.
retainedint retained()Subscribers who are still around after this month's churn pay full price.
monthlyRevenueint monthlyRevenue()No description in source.
monthlyCostint monthlyCost()No description in source.

WholesaleModel #sleela 2.5 (lib/character/WholesaleModel.sleela)

WholesaleModel class extends BusinessModel

WholesaleModel — sell in bulk to the people who sell to people. Thin margin per case, enormous volume, and a loyalty to the pallet jack that borders on romantic. A concrete BusinessModel: revenue is cases x case-price; the per-case margin is slim by design. Family: character.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Fields — the named values this unit stores.

FieldDeclarationWhat it holds
casesint casescases moved this month
casePriceCentsint casePriceCentsprice per case to the retailer
caseCostCentsint caseCostCentscost per case from the manufacturer
logisticsCentsint logisticsCentsmonthly warehouse + freight overhead

Methods — the actions this unit can perform.

MethodSignatureWhat it does
setUpvoid setUp(int casesSold, int casePrice, int caseCost, int logistics)No description in source.
monthlyRevenueint monthlyRevenue()No description in source.
monthlyCostint monthlyCost()No description in source.