예제 #1
0
 public void Draw(Graphics graph)
 {
     if (m_destroyed)
     {
         return;
     }
     if (!IsDead())
     {
         graph.DrawImage(m_base, FBattleScreen.GetRotatedRectangle(m_baseDirection, CConstants.tankSize, m_x, m_y));
         graph.DrawImage(m_turret, FBattleScreen.GetRotatedRectangle(m_turretDirection, CConstants.turretSize, m_x, m_y));
     }
     else
     {
         graph.DrawImage(CConstants.wrecked, FBattleScreen.GetRotatedRectangle(m_baseDirection, CConstants.tankSize, m_x, m_y));
     }
 }
예제 #2
0
 public void Draw(Graphics graph)
 {
     graph.DrawImage(CConstants.shell, FBattleScreen.GetRotatedRectangle(m_direction, CConstants.shellSize, m_x, m_y));
 }