cehua_ZWJ
2019-01-30 6afaa4408f4e09e3e95dbd92f0d1cd5a1fb2942b
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
x{[c@s¹dZddlZddlZddlZddlZddlZddlZddlZdd d„ƒYZd„Z    d„Z
d„Z d„Z d    „Z d
„Zd „Zd „ZdS(sVersion = 2015-09-23 14:30iÿÿÿÿNt
PYPositioncBs/eZdZdZd„Zd„Zd„ZRS(icCs||_||_dS(N(t_PYPosition__PosXt_PYPosition__PosY(tselftposXtposY((sT.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Map\GameMap.pyt__init__.s    cCs|jS(N(R(R((sT.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Map\GameMap.pytGetPosX6scCs|jS(N(R(R((sT.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Map\GameMap.pytGetPosY<s(t__name__t
__module__RRRRR(((sT.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Map\GameMap.pyR's
        cCsçtjƒ}xËtd||ƒD]¶}tj||||ƒ}tj||||ƒ}||krx||krxq n|j||ƒtkr–q n|j||ƒ}|s´q n|jƒdkrÌq nt    ||ƒSWt    ||ƒS(Ni(
t    GameWorldtGetMaptrangetrandomtrandinttCanMovetTruet    GetPosObjt GetObjCountR(RRtdisttgameMaptitresultXtresultYtmapObj((sT.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Map\GameMap.pytGetEmptyPlaceInAreaFs c
Cstjƒ}t|dƒ}xïtd||ƒD]Ú}tjd|ƒ}tjd|ƒ}tjddƒrx||}n
||}tjddƒr¡||}n
||}|j||ƒtkrÉq/n|j||ƒ}    |    sçq/n|    j    ƒdkrÿq/nt
||ƒSWt
||ƒS(Niii( R R tmaxR RRRRRRR(
RRRRRttmpXttmpYRRR((sT.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Map\GameMap.pytGetEmptyPlaceInSurroundcs(  
 
c    Cs tjƒ}xïtd||ƒD]Ú}tj||||ƒ}tj||||ƒ}||krx||krxq n|j||ƒtkr–q ntj||||ƒ|krºq n|j||ƒ}|sØq n|j    ƒdkrðq nt
||ƒSWt
||ƒS(Ni( R R R RRRRt    GetDistExRRR(    RRtminDisttmaxDistRRRRR((sT.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Map\GameMap.pytGetEmptyPlaceInAreaExŒs" cCs˜tjƒ}x|D]w}||d}||d}|j||ƒsMqn|j||ƒ}|skqn|jƒdkrƒqn||fSW||fS(Nii(R R RRR(RRtmatrixRtcurPosRRR((sT.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Map\GameMap.pytGetPosByMatrix²s   c CsÈtjƒ}g}x¯|D]§\}}||}||}    |j||    ƒ}
|
sWqnxftd|
jƒƒD]O} |
j| ƒ} tj| ƒs—qmn| jƒ|kr¯qmn|j    | ƒqmWqW|S(Ni(
R R RR Rt GetObjByIndext AttackCommontCheckObjCanDoLogictGetGameObjTypetappend( t
centerPosXt
centerPosYtareaMatrixListt paramTypeListRt findObjListt
curAddPosXt
curAddPosYtcurPosXtcurPosYRRtcurObj((sT.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Map\GameMap.pytGetAreaGameObjByTypeÔs  
 
cCsštjƒ}xktd||ƒD]V}tj||||ƒ}tj||||ƒ}|j||ƒr ||fSq W|j||ƒr–||fSdS(Ni(ii(R R R RRR(RRRRRRR((sT.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Map\GameMap.pytGetNearbyPosByDisös 
cCsÑtjƒj||ƒ}|s%tjStj}xœt|jƒƒD]ˆ}|j|ƒ}|dkrhqAn|tj    kr~tj
S|tjkr“qAn|tj kr®tj }n|tj krAtj}qAqAW|S(Ni(R R Rt IPY_GameWorldt    gatNormaltxrangetGetEffectCountt GetEffectIDtChConfigtDef_AreaType_SkillID_SafetgatSafetDef_AreaType_SkillID_FreePKt    gatFreePKtDef_AreaType_SkillID_FamilyPKt gatFamilyPK(RRt    curPosObjtareaTypetindexteffectID((sT.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Map\GameMap.pytGetAreaTypeByMapPos
s"      cCsktjƒj||ƒ}|s"tS|jƒ}x6td|ƒD]%}|j|ƒ}||kr>tSq>WtS(Ni(R R RtFalseR:R R;R(RRt findEffectIDRCt effectCountRERF((sT.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Map\GameMap.pytGetAreaBuffIsExist-s  ((t__doc__R RR<R'R7tGameLogic_ManorWart ShareDefineRRRR"R%R5R6RGRK(((sT.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Map\GameMap.pyt<module>s                )    &    "    "        #