Mercurial > rinkhals
comparison gamelib/equipment.py @ 210:00d609883252
egg equipment
author | Adrianna Pińska <adrianna.pinska@gmail.com> |
---|---|
date | Fri, 04 Sep 2009 21:25:04 +0000 |
parents | 3074784c93f4 |
children | 7024d48c41c2 |
comparison
equal
deleted
inserted
replaced
209:94626af799ba | 210:00d609883252 |
---|---|
151 class Nest(Accoutrement): | 151 class Nest(Accoutrement): |
152 NAME = "nest" | 152 NAME = "nest" |
153 CHICKEN_IMAGE_FILE = 'sprites/nest.png' | 153 CHICKEN_IMAGE_FILE = 'sprites/nest.png' |
154 DRAW_LAYER = 15 | 154 DRAW_LAYER = 15 |
155 | 155 |
156 class NestEgg(Accoutrement): | |
157 NAME = "nestegg" | |
158 CHICKEN_IMAGE_FILE = 'sprites/equip_egg.png' | |
159 DRAW_LAYER = 14 | |
160 | |
156 def is_equipment(obj): | 161 def is_equipment(obj): |
157 """Return true if obj is a build class.""" | 162 """Return true if obj is a build class.""" |
158 return getattr(obj, "IS_EQUIPMENT", False) and hasattr(obj, "NAME") | 163 return getattr(obj, "IS_EQUIPMENT", False) and hasattr(obj, "NAME") |
159 | 164 |
160 def is_weapon(obj): | 165 def is_weapon(obj): |