Modelling player characters and starting a scafolding "protobot".

This commit is contained in:
Offray Vladimir Luna Cárdenas 2021-11-16 19:23:50 -05:00
parent bd1257de86
commit 62756bf703
25 changed files with 125 additions and 0 deletions

View File

View File

@ -0,0 +1,7 @@
accessing
newRandomPlayerCharacter
^ SfPlayerCharacter new
momentum;
health: 5;
spirit: 5;
supply: 5.

View File

@ -0,0 +1,11 @@
{
"commentStamp" : "",
"super" : "Object",
"category" : "RoloLudo",
"classinstvars" : [ ],
"pools" : [ ],
"classvars" : [ ],
"instvars" : [ ],
"name" : "LudoBot",
"type" : "normal"
}

View File

@ -0,0 +1 @@
I model a player character for the Ironsworn Starforged game.

View File

@ -0,0 +1,4 @@
accessing
assets: anObject
assets := anObject

View File

@ -0,0 +1,4 @@
accessing
assets
^ assets

View File

@ -0,0 +1,4 @@
accessing
callsign: anObject
callsign := anObject

View File

@ -0,0 +1,4 @@
accessing
callsign
^ callsign

View File

@ -0,0 +1,4 @@
accessing
health: anObject
health := anObject

View File

@ -0,0 +1,4 @@
accessing
health
^ health

View File

@ -0,0 +1,4 @@
accessing
momentum: anObject
momentum := anObject

View File

@ -0,0 +1,8 @@
accessing
momentum
^ momentum ifNil: [
momentum := Dictionary new
at: 'max' put: 10;
at: 'reset' put: 2;
at: 'current' put: 2.
]

View File

@ -0,0 +1,4 @@
accessing
name: anObject
name := anObject

View File

@ -0,0 +1,4 @@
accessing
name
^ name

View File

@ -0,0 +1,4 @@
accessing
pronouns: anObject
pronouns := anObject

View File

@ -0,0 +1,4 @@
accessing
pronouns
^ pronouns

View File

@ -0,0 +1,4 @@
accessing
spirit: anObject
spirit := anObject

View File

@ -0,0 +1,4 @@
accessing
spirit
^ spirit

View File

@ -0,0 +1,4 @@
accessing
stats: anObject
stats := anObject

View File

@ -0,0 +1,4 @@
accessing
stats
^ stats

View File

@ -0,0 +1,4 @@
accessing
supply: anObject
supply := anObject

View File

@ -0,0 +1,4 @@
accessing
supply
^ supply

View File

@ -0,0 +1,4 @@
accessing
vows: anObject
vows := anObject

View File

@ -0,0 +1,4 @@
accessing
vows
^ vows

View File

@ -0,0 +1,22 @@
{
"commentStamp" : "<historical>",
"super" : "Object",
"category" : "RoloLudo",
"classinstvars" : [ ],
"pools" : [ ],
"classvars" : [ ],
"instvars" : [
"name",
"pronouns",
"callsign",
"assets",
"stats",
"vows",
"momentum",
"health",
"spirit",
"supply"
],
"name" : "SfPlayerCharacter",
"type" : "normal"
}