Friday, November 09, 2007

Some fun with an imaginary universe (OOP classes and methods)


A novel manuscript that I am working on (called "Brothers Simple") imagines a scenario where people find out who the gods and angels really are. They map to Biblical concepts in a way (in a New Age sense) and the various entities could be described as classes of objects with associated behaviors or methods, that combine or detach the entities in various ways. Any language like java, C#, or C++ could work.

I suppose this could evolve into some kind of online universe (not exactly "Second Life").

Have fun.

Classes:
Soul
Person
OrdinaryPerson
Angel
FullMemoryTrace
Merit


Methods:

Group
AddSoul

Soul: (vehicle though which you are aware of yourself crosses dreams – a bundle of consciousness)
AddPerson
ShaveBackPerson
ExtinguishSoul
ViewPerson (//always from a distance)
HoldSoul (suspend for reawakening)
ModifyKarma
Death: ShaveBackPerson for all Person objects in Soul
Death: JoinGroup

Person: (vehicle for your waking identity)
ShaveBackPersonalHold (//reject temptation)
Extinguish (//death)
Increment (//change appearance)
InsertintoSoul (//reincarnation)
UpwardAffiliate (//with angel)
Add PartFrom Soul (//experience memory of another as if one’s own)
RemovePartToSoul (//like forgetting a dream)
Classify (//angel – class 1 ordinary second class brownie third class -- the “brownies and elves problem”)
ModifyMerit

Angel extends Person
Preserve (//protect from Death methods)
Trump (//take over older angelic identity)
Capture (//ordinary person to be affiliated)
Hibernate (//when taken over)
RecallAndExpellAllPreviousParts (//relive each life and expel permanently)
JumpOnDoubles (//speed > c (boardgame dice roll))
RefuseDreamAsUnopened

OrdinaryPerson extends Person
LinkToNewSoul (amnesia syndrome)

No comments: