1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80
| /* all race */
isa(race, humain).
isa(race, elf).
isa(race, dwarf).
isa(race, magician).
isa(race, orc).
isa(humain, aragorn).
isa(elf, legolas).
isa(elf, arwen).
isa(dwarf, gimli).
isa(magician, gandalf).
isa(magician, saoumane).
isa(orc, gothmog).
/* =================== human =============== */
is_vilain(human, false).
lifetime(human, 80).
trait(human, brave).
moving_method(humain, horse).
%gondor
isa(gondor,human).
%haradrim
is_vilain(haradrim, true).
moving_method(haradrim, elephant).
/* aragorn */
isa(aragorn, gondor).
weapon(aragorn, sword).
moving_speed(aragorn, quickly).
lifetime(aragorn, 210).
sex(aragorn, male).
/* ================= elf =================== */
lifetime(elf, infinite).
trait(elf, wise).
color_hair(elf,blond).
vision(elf, nyctalope).
is_vilain(elf, false).
weapon(elf, bow).
/* legolas */
sex(legolas, male).
/* arwen */
weapon(arwen, sword).
color_hair(arwen, brown).
isa(arwen, female).
/* ================== dwarf ================== */
moving_speed(dwarf, slowly).
is_vilain(dwarf, false).
trait(dwarf, selfish).
weapon(dwarf, axe).
/* gimli */
sex(gimli, male).
/* =============== magician =================*/
lifetime(magician, infinite).
weapon(magician, stick).
trait(magician, powerful).
is_vilain(magician, false).
isa(magician, gandalf).
isa(magician, saroumane).
/* saroumane */
is_vilain(saroumane, true).
color(saroumane, white).
/* gandalf */
color(gandalf, grey).
/* =============== orc ==================== */
is_vilain(orc, true).
sex(orc, male).
moving_speed(gothmog, quickly).
/* gothmog */
weapon(gothmog, sword).
moving_speed(gothmog, slowly). |
Partager