Creatures (multiple inheritance)

Help Contents Examples Creatures (multiple inheritance)
CatDog (simple) Citadel Problem

Creatures (multiple inheritance)

This creatures example demontrates how easy multiple inheritance is in Elica.

make "creature
[	[]
	make local "can

	to describe
		print "I "can names :can
	end
]

make "hen
[	[]
	run bf :creature
	make "'can. lay eggs'
]

make "sheep
[	[]
	run bf :creature
	make "'can. grow wool'
]

make "cow
[	[]
	run bf :creature
	make "'can. give milk'
]

make "pig
[	[]
	run bf :creature
	make "'can. not run away fast enough'
]

make "egglaying_wool_milk_sow
[	[]
	run bf :hen
	run bf :sheep
	run bf :cow
	run bf :pig
]

make "Elica egglaying_wool_milk_sow

Elica.describe

CatDog (simple) Citadel Problem