-
Notifications
You must be signed in to change notification settings - Fork 1
/
LabyTextFxTunnelMonster.py
41 lines (23 loc) · 1.03 KB
/
LabyTextFxTunnelMonster.py
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
# -*- coding: utf-8 -*-
import LabyTextFxTunnel
import Entity
import SpriteIndex
__author__ = 'Yoann'
"""
Ce package contient la définition de l'effet tunnel dans le labyrinthe pour les monstres uniquement
"""
class LTFxTunnelMonster(LabyTextFxTunnel.LTFxTunnel):
def checkFX(self, ObjEntity, type, x=None, y=None):
print("LTFxTunnelMonster::initFx::checkFX::Start")
if type=='check': return True
# Vérification de l'ordre et du type de l'entité
if ((type!='apply') or (not isinstance(ObjEntity,Entity.Monster))) :
return (x,y)
print("LTFxTunnelMonster::initFx::checkFX::Pass")
return(LabyTextFxTunnel.LTFxTunnel.checkFX(self,ObjEntity,type,x,y))
def renderFx(self, ObjGfx, dt):
if self._hasChanged:
for (x,y) in self.ExchangeSet:
ObjGfx.addFxTile(x,y,SpriteIndex.SPRITE_TELEPORTEURMONSTER)
self._hasChanged = False
return True