MCPcopy Create free account
hub / github.com/OpenXcom/OpenXcom / getRadius

Method getRadius

src/Ruleset/RuleUfo.cpp:93–116  ·  view source on GitHub ↗

* Gets the radius of this type of UFO * on the dogfighting window. * @return The radius in pixels. */

Source from the content-addressed store, hash-verified

91 * @return The radius in pixels.
92 */
93int 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

Callers 1

ufoFireWeaponMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected