* Gets the radius of this type of UFO * on the dogfighting window. * @return The radius in pixels. */
| 91 | * @return The radius in pixels. |
| 92 | */ |
| 93 | int RuleUfo::getRadius() const |
| 94 | { |
| 95 | if (_size == "STR_VERY_SMALL") |
| 96 | { |
| 97 | return 2; |
| 98 | } |
| 99 | else if (_size == "STR_SMALL") |
| 100 | { |
| 101 | return 3; |
| 102 | } |
| 103 | else if (_size == "STR_MEDIUM_UC") |
| 104 | { |
| 105 | return 4; |
| 106 | } |
| 107 | else if (_size == "STR_LARGE") |
| 108 | { |
| 109 | return 5; |
| 110 | } |
| 111 | else if (_size == "STR_VERY_LARGE") |
| 112 | { |
| 113 | return 6; |
| 114 | } |
| 115 | return 0; |
| 116 | } |
| 117 | |
| 118 | /** |
| 119 | * Gets the ID of the sprite used to draw the UFO |