comparison demos/rpg/scripts/objects/items.py @ 563:f85762e634c5

- Added the AttackAction along with a test enemy on level 1. - Removed the getModuleByType() helper function.
author prock@33b003aa-7bff-0310-803a-e67f0ece8222
date Thu, 24 Jun 2010 21:27:11 +0000
parents 69d50e751c9a
children
comparison
equal deleted inserted replaced
562:e34b44afd428 563:f85762e634c5
25 25
26 import sys, os, re, math, random, shutil 26 import sys, os, re, math, random, shutil
27 27
28 from fife import fife 28 from fife import fife
29 29
30 from scripts.objects.baseobject import BaseGameObject, GameObjectTypes, getModuleByType 30 from scripts.objects.baseobject import BaseGameObject, GameObjectTypes
31 31
32 32
33 class BaseItem(BaseGameObject): 33 class BaseItem(BaseGameObject):
34 def __init__(self, gamecontroller, layer, typename, baseobjectname, itemtype, itemname): 34 def __init__(self, gamecontroller, layer, typename, baseobjectname, itemtype, itemname):
35 super(BaseItem, self).__init__(gamecontroller, layer, typename, baseobjectname, itemtype, itemname, True) 35 super(BaseItem, self).__init__(gamecontroller, layer, typename, baseobjectname, itemtype, itemname, True)