twistile

The beginnings of a server for a tile-based game using Crossfire assets.
git clone https://code.literati.org/twistile.git
Log | Files | Refs

archetypes.py (6691B)


      1 class Archetype(object):
      2     def __init__(self, **kw):
      3         self.__dict__.update(kw)
      4 
      5 
      6 class Player(Archetype):
      7     pass
      8 
      9 
     10 class Transport(Archetype):
     11     pass
     12 
     13 
     14 class Rod(Archetype):
     15     pass
     16 
     17 
     18 class Treasure(Archetype):
     19     pass
     20 
     21 
     22 class Potion(Archetype):
     23     pass
     24 
     25 
     26 class Food(Archetype):
     27     pass
     28 
     29 
     30 class Poison(Archetype):
     31     pass
     32 
     33 
     34 class Book(Archetype):
     35     pass
     36 
     37 
     38 class Clock(Archetype):
     39     pass
     40 
     41 
     42 class Vein(Archetype):
     43     pass
     44 
     45 
     46 class Ranged(Archetype):
     47     pass
     48 
     49 
     50 class Skillscroll(Archetype):
     51     pass
     52 
     53 
     54 class Arrow(Archetype):
     55     pass
     56 
     57 
     58 class Bow(Archetype):
     59     pass
     60 
     61 
     62 class Weapon(Archetype):
     63     pass
     64 
     65 
     66 class Armour(Archetype):
     67     pass
     68 
     69 
     70 class Pedestal(Archetype):
     71     pass
     72 
     73 
     74 class Altar(Archetype):
     75     pass
     76 
     77 
     78 class TMatch(Archetype):
     79     pass
     80 
     81 
     82 class LockedDoor(Archetype):
     83     pass
     84 
     85 
     86 class SpecialKey(Archetype):
     87     pass
     88 
     89 
     90 class Map(Archetype):
     91     pass
     92 
     93 
     94 class Door(Archetype):
     95     pass
     96 
     97 
     98 class Key(Archetype):
     99     pass
    100 
    101 
    102 class Physics(Archetype):
    103     pass
    104 
    105 
    106 class TimedGate(Archetype):
    107     pass
    108 
    109 
    110 class Trigger(Archetype):
    111     pass
    112 
    113 
    114 class Grimreaper(Archetype):
    115     pass
    116 
    117 
    118 class MagicEar(Archetype):
    119     pass
    120 
    121 
    122 class TriggerButton(Archetype):
    123     pass
    124 
    125 
    126 class TriggerAltar(Archetype):
    127     pass
    128 
    129 
    130 class TriggerPedestal(Archetype):
    131     pass
    132 
    133 
    134 class Shield(Archetype):
    135     pass
    136 
    137 
    138 class Helmet(Archetype):
    139     pass
    140 
    141 
    142 class Horn(Archetype):
    143     pass
    144 
    145 
    146 class Money(Archetype):
    147     pass
    148 
    149 
    150 class Class(Archetype):
    151     pass
    152 
    153 
    154 class Gravestone(Archetype):
    155     pass
    156 
    157 
    158 class Amulet(Archetype):
    159     pass
    160 
    161 
    162 class Playermover(Archetype):
    163     pass
    164 
    165 
    166 class Teleporter(Archetype):
    167     pass
    168 
    169 
    170 class Creator(Archetype):
    171     pass
    172 
    173 
    174 class Skill(Archetype):
    175     pass
    176 
    177 
    178 class IdentifyAltar(Archetype):
    179     pass
    180 
    181 
    182 class Earthwall(Archetype):
    183     pass
    184 
    185 
    186 class Golem(Archetype):
    187     pass
    188 
    189 
    190 class DeepSwamp(Archetype):
    191     pass
    192 
    193 
    194 class ThrownObj(Archetype):
    195     pass
    196 
    197 
    198 class Blindness(Archetype):
    199     pass
    200 
    201 
    202 class God(Archetype):
    203     pass
    204 
    205 
    206 class Detector(Archetype):
    207     pass
    208 
    209 
    210 class TriggerMarker(Archetype):
    211     pass
    212 
    213 
    214 class DeadObject(Archetype):
    215     pass
    216 
    217 
    218 class Drink(Archetype):
    219     pass
    220 
    221 
    222 class Marker(Archetype):
    223     pass
    224 
    225 
    226 class HolyAltar(Archetype):
    227     pass
    228 
    229 
    230 class PlayerChanger(Archetype):
    231     pass
    232 
    233 
    234 class Battleground(Archetype):
    235     pass
    236 
    237 
    238 class Peacemaker(Archetype):
    239     pass
    240 
    241 
    242 class Gem(Archetype):
    243     pass
    244 
    245 
    246 class Menu(Archetype):
    247     pass
    248 
    249 
    250 class Firewall(Archetype):
    251     pass
    252 
    253 
    254 class Anvil(Archetype):
    255     pass
    256 
    257 
    258 class CheckInv(Archetype):
    259     pass
    260 
    261 
    262 class MoodFloor(Archetype):
    263     pass
    264 
    265 
    266 class Exit(Archetype):
    267     pass
    268 
    269 
    270 class Encounter(Archetype):
    271     pass
    272 
    273 
    274 class ShopFloor(Archetype):
    275     pass
    276 
    277 
    278 class ShopMat(Archetype):
    279     pass
    280 
    281 
    282 class Ring(Archetype):
    283     pass
    284 
    285 
    286 class Flesh(Archetype):
    287     pass
    288 
    289 
    290 class Inorganic(Archetype):
    291     pass
    292 
    293 
    294 class SkillTool(Archetype):
    295     pass
    296 
    297 
    298 class Lighter(Archetype):
    299     pass
    300 
    301 
    302 class BuildableWall(Archetype):
    303     pass
    304 
    305 
    306 class MiscObject(Archetype):
    307     pass
    308 
    309 
    310 class Torch(Archetype):
    311     pass
    312 
    313 
    314 class Lamp(Archetype):
    315     pass
    316 
    317 
    318 class Duplicator(Archetype):
    319     pass
    320 
    321 
    322 class Spellbook(Archetype):
    323     pass
    324 
    325 
    326 class Cloak(Archetype):
    327     pass
    328 
    329 
    330 class Mapscript(Archetype):
    331     pass
    332 
    333 
    334 class SafeGround(Archetype):
    335     pass
    336 
    337 
    338 class Spinner(Archetype):
    339     pass
    340 
    341 
    342 class Gate(Archetype):
    343     pass
    344 
    345 
    346 class Button(Archetype):
    347     pass
    348 
    349 
    350 class THandle(Archetype):
    351     pass
    352 
    353 
    354 class Hole(Archetype):
    355     pass
    356 
    357 
    358 class Trapdoor(Archetype):
    359     pass
    360 
    361 
    362 class Rune(Archetype):
    363     pass
    364 
    365 
    366 class Trap(Archetype):
    367     pass
    368 
    369 
    370 class Sign(Archetype):
    371     pass
    372 
    373 
    374 class Boots(Archetype):
    375     pass
    376 
    377 
    378 class Gloves(Archetype):
    379     pass
    380 
    381 
    382 class Spell(Archetype):
    383     pass
    384 
    385 
    386 class SpellEffect(Archetype):
    387     pass
    388 
    389 
    390 class Converter(Archetype):
    391     pass
    392 
    393 
    394 class Bracers(Archetype):
    395     pass
    396 
    397 
    398 class Poisoning(Archetype):
    399     pass
    400 
    401 
    402 class Savebed(Archetype):
    403     pass
    404 
    405 
    406 class Disease(Archetype):
    407     pass
    408 
    409 
    410 class Symptom(Archetype):
    411     pass
    412 
    413 
    414 class Wand(Archetype):
    415     pass
    416 
    417 
    418 class Inscribable(Archetype):
    419     pass
    420 
    421 
    422 class Scroll(Archetype):
    423     pass
    424 
    425 
    426 class Director(Archetype):
    427     pass
    428 
    429 
    430 class Girdle(Archetype):
    431     pass
    432 
    433 
    434 class Force(Archetype):
    435     pass
    436 
    437 
    438 class PotionEffect(Archetype):
    439     pass
    440 
    441 
    442 class EventConnector(Archetype):
    443     pass
    444 
    445 
    446 class ItemTransformer(Archetype):
    447     pass
    448 
    449 
    450 class PowerCrystal(Archetype):
    451     pass
    452 
    453 
    454 class Corpse(Archetype):
    455     pass
    456 
    457 
    458 class CloseCon(Archetype):
    459     pass
    460 
    461 
    462 class Container(Archetype):
    463     pass
    464 
    465 
    466 class ArmourImprover(Archetype):
    467     pass
    468 
    469 
    470 class WeaponImprover(Archetype):
    471     pass
    472 
    473 
    474 class Builder(Archetype):
    475     pass
    476 
    477 
    478 class Material(Archetype):
    479     pass
    480 
    481 
    482 types = {
    483     0: Archetype,
    484     1: Player,
    485     2: Transport,
    486     3: Rod,
    487     4: Treasure,
    488     5: Potion,
    489     6: Food,
    490     7: Poison,
    491     8: Book,
    492     9: Clock,
    493     10: Vein,
    494     11: Ranged,
    495     12: Skillscroll,
    496     13: Arrow,
    497     14: Bow,
    498     15: Weapon,
    499     16: Armour,
    500     17: Pedestal,
    501     18: Altar,
    502     19: TMatch,
    503     20: LockedDoor,
    504     21: SpecialKey,
    505     22: Map,
    506     23: Door,
    507     24: Key,
    508     25: Physics,
    509     26: TimedGate,
    510     27: Trigger,
    511     28: Grimreaper,
    512     29: MagicEar,
    513     30: TriggerButton,
    514     31: TriggerAltar,
    515     32: TriggerPedestal,
    516     33: Shield,
    517     34: Helmet,
    518     35: Horn,
    519     36: Money,
    520     37: Class,
    521     38: Gravestone,
    522     39: Amulet,
    523     40: Playermover,
    524     41: Teleporter,
    525     42: Creator,
    526     43: Skill,
    527     44: IdentifyAltar,
    528     45: Earthwall,
    529     46: Golem,
    530     47: DeepSwamp,
    531     48: ThrownObj,
    532     49: Blindness,
    533     50: God,
    534     51: Detector,
    535     52: TriggerMarker,
    536     53: DeadObject,
    537     54: Drink,
    538     55: Marker,
    539     56: HolyAltar,
    540     57: PlayerChanger,
    541     58: Battleground,
    542     59: Peacemaker,
    543     60: Gem,
    544     61: Menu,
    545     62: Firewall,
    546     63: Anvil,
    547     64: CheckInv,
    548     65: MoodFloor,
    549     66: Exit,
    550     67: Encounter,
    551     68: ShopFloor,
    552     69: ShopMat,
    553     70: Ring,
    554     72: Flesh,
    555     73: Inorganic,
    556     74: SkillTool,
    557     75: Lighter,
    558     77: BuildableWall,
    559     79: MiscObject,
    560     81: Torch,
    561     82: Lamp,
    562     83: Duplicator,
    563     85: Spellbook,
    564     87: Cloak,
    565     88: Mapscript,
    566     89: SafeGround,
    567     90: Spinner,
    568     91: Gate,
    569     92: Button,
    570     93: THandle,
    571     94: Hole,
    572     95: Trapdoor,
    573     96: Rune,
    574     97: Trap,
    575     98: Sign,
    576     99: Boots,
    577     100: Gloves,
    578     101: Spell,
    579     102: SpellEffect,
    580     103: Converter,
    581     104: Bracers,
    582     105: Poisoning,
    583     106: Savebed,
    584     107: Disease,
    585     108: Symptom,
    586     109: Wand,
    587     110: Inscribable,
    588     111: Scroll,
    589     112: Director,
    590     113: Girdle,
    591     114: Force,
    592     115: PotionEffect,
    593     116: EventConnector,
    594     117: ItemTransformer,
    595     118: PowerCrystal,
    596     119: Corpse,
    597     121: CloseCon,
    598     122: Container,
    599     123: ArmourImprover,
    600     124: WeaponImprover,
    601     125: Builder,
    602     126: Material,
    603     }