io
eepri
tStackTraceifxgtspeedxspeed
break
让坦克随机产生一个新的方向ifMathra
domgt050thisdirecti
tMathra
dom4
f判断敌人坦克是否死亡ifthisisLivefalse让坦克死亡后,退出线程break
我的坦克classHeroexte
dsTa
k子弹Shots
ullVectorltShotgtss
ewVectorltShotgtShots
ull
fpublicHeroi
txi
tysuperxy坦克向上移动
坦克的开火的能力和动作publicvoidshotE
emyswitchthisdirectcase0s
ewShotx9y10ssaddsbreakcase1s
ewShotx30y101ssaddsbreakcase2s
ewShotx9y302ssadds
fbreakcase3s
ewShotx1y93ssaddsbreakssadds
Threadt
ewThreadststart
publicvoidmoveUp
thisyspeedpublicvoidmoveRight
fthisxspeed
publicvoidmoveDow
thisyspeedpublicvoidmoveLeftthisxspeed
classShotimpleme
tsRu
ablei
txi
tyi
tdirecti
tspeed1是否活着
fboolea
isLivetruepublicShoti
txi
tyi
tdirectthisxxthisyythisdirectdirectpublicvoidru
whiletruetryThreadsleep50catchI
terruptedExceptio
eepri
tStackTrace
switchdirectcase0向上yspeedbreak
fcase1xspeedbreakcase2yspeedbreakcase3xspeedbreak
子弹何时死亡?判断该子弹是否碰到边缘ifxlt0xgt400ylt0ygt300thisisLivefalsebreak
fclassBomb定义炸弹的坐标i
txy炸弹的生命i
tlife9boolea
isLivetruepublicBombi
txi
tythisxxthisyy减少生命值publicvoidlifeDow
iflifegt0lifeelsethisisLivefalse
fr