| 1947 | } |
| 1948 | |
| 1949 | void CStaticMapMain::IssueWatch(float x, float y) |
| 1950 | { |
| 1951 | AIUnit* me = GetMyUnit(); |
| 1952 | AIGroup* myGroup = me ? me->GetGroup() : nullptr; |
| 1953 | if (!myGroup) |
| 1954 | { |
| 1955 | return; |
| 1956 | } |
| 1957 | |
| 1958 | PackedBoolArray list = Poseidon::ListSelectedUnits(); |
| 1959 | if (me == myGroup->Leader() && !list.IsEmpty()) |
| 1960 | { |
| 1961 | // command for units |
| 1962 | Vector3 pos; |
| 1963 | pos = ScreenToWorld(DrawCoord(x, y)); |
| 1964 | pos[1] = GLOB_LAND->RoadSurfaceYAboveWater(pos[0], pos[2]); |
| 1965 | myGroup->SendState(new RadioMessageWatchPos(myGroup, list, pos)); |
| 1966 | Poseidon::ClearSelectedUnits(); |
| 1967 | } |
| 1968 | } |
| 1969 | |
| 1970 | void CStaticMapMain::IssueAttack(TargetType* target) |
| 1971 | { |
nothing calls this directly
no test coverage detected