annotate pytouhou/game/character.py @ 178:0bd5e5f19a73

Fix Patchouli’s 日符「ロイヤルフレア」 spellcard.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Sun, 23 Oct 2011 05:11:48 -0700
parents 80a4c7ed43b3
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
130
11ab06f4c4c6 Introduce characters!
Thibaut Girka <thib@sitedethib.com>
parents:
diff changeset
1 class Character(object):
176
80a4c7ed43b3 Add grazing check.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 130
diff changeset
2 def __init__(self, anm_wrapper, speed, focused_speed, hitbox_size, graze_hitbox_size):
130
11ab06f4c4c6 Introduce characters!
Thibaut Girka <thib@sitedethib.com>
parents:
diff changeset
3 self.anm_wrapper = anm_wrapper
11ab06f4c4c6 Introduce characters!
Thibaut Girka <thib@sitedethib.com>
parents:
diff changeset
4 self.speed = speed
11ab06f4c4c6 Introduce characters!
Thibaut Girka <thib@sitedethib.com>
parents:
diff changeset
5 self.focused_speed = focused_speed
11ab06f4c4c6 Introduce characters!
Thibaut Girka <thib@sitedethib.com>
parents:
diff changeset
6 self.hitbox_size = hitbox_size
176
80a4c7ed43b3 Add grazing check.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 130
diff changeset
7 self.graze_hitbox_size = graze_hitbox_size