diff --git a/BaseBuilder.cpp b/BaseBuilder.cpp index e5c4f61..75db6f5 100644 --- a/BaseBuilder.cpp +++ b/BaseBuilder.cpp @@ -42,7 +42,7 @@ void CreateBase(int player, int x, int y, const BaseInfo& baseInfo) { TubeWallInfo &curItem = baseInfo.tubeInfo[i]; CreateTubeLine( - LOCATION(x + curItem.fromX, y + curItem.fromY), + LOCATION(x + curItem.fromX, y + curItem.fromY), LOCATION(x + curItem.toX, y + curItem.toY)); } diff --git a/BaseBuilder.h b/BaseBuilder.h index 214216c..69e6206 100644 --- a/BaseBuilder.h +++ b/BaseBuilder.h @@ -78,7 +78,7 @@ struct StartLocation // Note: These are very useful for randomizing player start locations and // beacon starting locations, among other things. -// Note: If used for placing beacons, it would be wise to have a seperate +// Note: If used for placing beacons, it would be wise to have a separate // list for each starting location so not all the beacons end up // appearing in a single player's base, and so you don't get only a // single resource type placed on the map. diff --git a/ColonyType.cpp b/ColonyType.cpp index aea50b9..20536bf 100644 --- a/ColonyType.cpp +++ b/ColonyType.cpp @@ -156,7 +156,7 @@ bool IsBuilding(map_id buildingType) bool IsVehicle(map_id vehicleType) { - // mapCargoTruck and mapEarthworker are respectively the first and last building indices + // mapCargoTruck and mapEarthworker are respectively the first and last vehicle indices return ((vehicleType >= map_id::mapCargoTruck) && (vehicleType <= map_id::mapEarthworker)); } diff --git a/EnumSoundID.h b/EnumSoundID.h index c2294f5..4b21fbc 100644 --- a/EnumSoundID.h +++ b/EnumSoundID.h @@ -4,7 +4,7 @@ // The enum names are the sound file names for each value. // Note: Some files are used more than once. The name of the file // is associated with the first soundID which references -// that file. Repeated occurances are listed as commented +// that file. Repeated occurrences are listed as commented // lines. @@ -104,140 +104,140 @@ enum SoundID sndBeep8 = 91, // 0x5B // sndBeep5 = 92, // 0x5C sndMessage2 = 93, // 0x5D - sndSavnt212 = 94, // 0x5E "Structure completed" - sndSavant2 = 95, // 0x5F "Research completed" - sndSavant3 = 96, // 0x60 "Our colony is under attack" - sndSavant4 = 97, // 0x61 "We are under attack" - sndSavant6 = 98, // 0x62 "Vehicle ready" - sndSavant7 = 99, // 0x63 "Consumer items completed" - sndSavant8 = 100, // 0x64 "Structure kit manufactured" - sndSavant9 = 101, // 0x65 "Spider ready" - sndSavant10 = 102, // 0x66 "Scorpion ready" - sndSavant11 = 103, // 0x67 "Structure destroyed" - sndSavnt206 = 104, // 0x68 "Vehicle destroyed" - sndSavant13 = 105, // 0x69 "Database reconstructed" - sndSavant14 = 106, // 0x6A "Enemy unit sighted" - sndSavant15 = 107, // 0x6B "Vehicle repaired" - sndSavnt204 = 108, // 0x6C "Structure repaired" - sndSavant17 = 109, // 0x6D "Warning, missile launch detected" - sndSavant18 = 110, // 0x6E "Warning, incoming missile" - sndSavant19 = 111, // 0x6F "Morale is excellent" - sndSavant20 = 112, // 0x70 "Morale is good" - sndSavant21 = 113, // 0x71 "Morale is fair" - sndSavant22 = 114, // 0x72 "Morale is poor" - sndSavant23 = 115, // 0x73 "Morale is terrible" - sndSavant24 = 116, // 0x74 "Food production in surplus" - sndSavant25 = 117, // 0x75 "Caution, food storage diminishing" - sndSavant26 = 118, // 0x76 "Warning, people are starving" - sndSavant27 = 119, // 0x77 "Power levels optimal" - sndSavant28 = 120, // 0x78 "Warning, power levels marginal" - sndSavant29 = 121, // 0x79 "Warning, power shortage" - sndSavant30 = 122, // 0x7A "New mission objective" - sndSavant32 = 123, // 0x7B "Edward satellite deployed" - sndSavant33 = 124, // 0x7C "Solar power satellite deployed" - sndSavant46 = 125, // 0x7D "Rocket launched" - sndSavant47 = 126, // 0x7E "RLV launched" - sndSavant48 = 127, // 0x7F "RLV ready" - sndSavant49 = 128, // 0x80 "Rocket ready" - sndSavnt221 = 129, // 0x81 "Common metals storage needed" - sndSavant51 = 130, // 0x82 "Rare metal storage needed" - sndSavant53 = 131, // 0x83 "New worker ready" - sndSavant58 = 132, // 0x84 "Our people are dying" - sndSavnt202 = 133, // 0x85 "Structure disabled" - sndSavnt227 = 134, // 0x86 (Beep) "You have failed, our colony is doomed" - sndSavant65 = 135, // 0x87 (Beep) "You have done well, our colony is surviving" - sndSavant66 = 136, // 0x88 "Caution, volcano watch initiated" - sndSavant67 = 137, // 0x89 "Alert, volcanic eruption imminent" - sndSavant68 = 138, // 0x8A "Warning, volcanic eruption detected" - sndSavant69 = 139, // 0x8B "Caution, vortex watch initiated" - sndSavant70 = 140, // 0x8C "Alert, vortex imminent" - sndSavant71 = 141, // 0x8D "Warning, vortex detected" - sndSavant72 = 142, // 0x8E "Caution, electrical storm watch initiated" - sndSavant73 = 143, // 0x8F "Alert, electrical storm imminent" - sndSavant74 = 144, // 0x90 "Warning, electrical storm detected" - sndSavant75 = 145, // 0x91 "Caution, meteor watch initiated" - sndSavant76 = 146, // 0x92 "Alert, meteor impact imminent" - sndSavant77 = 147, // 0x93 "Warning, meteor approaching" - sndSavant78 = 148, // 0x94 "Caution, seismic watch initiated" - sndSavant79 = 149, // 0x95 "Alert, seismic event imminent" - sndSavant80 = 150, // 0x96 "Warning, seismic event detected" - sndSavant93 = 151, // 0x97 "Wreckage located" - sndSavnt278 = 152, // 0x98 "The blight is approching" - sndSavnt207 = 153, // 0x99 "Damage warning" - sndSavant96 = 154, // 0x9A "Mining location surveyed" - sndSavant97 = 155, // 0x9B "Cannot deploy" - sndSavant98 = 156, // 0x9C "Command control initiated" - sndSavant99 = 157, // 0x9D "Savant series computer activated, Outpost2 demo initiated, please choose an option" - sndSavnt100 = 158, // 0x9E "Can not comply" - sndSavnt101 = 159, // 0x9F "Commander, a volcanic eruption is imminent, evacuate the colony and rendevous at the mining beacon north of our location" - sndSavnt201 = 160, // 0xA0 "Data transmitted" - sndSavnt203 = 161, // 0xA1 "Structures disabled" - sndSavnt205 = 162, // 0xA2 "Reinforcements ready" - sndSavnt208 = 163, // 0xA3 "Wall completed" - sndSavnt209 = 164, // 0xA4 "Tube completed" - sndSavnt210 = 165, // 0xA5 "Bulldozing completed" - sndSavnt211 = 166, // 0xA6 "Vehicle infected" - sndSavnt213 = 167, // 0xA7 "Structure lost" - sndSavnt214 = 168, // 0xA8 "Vehicle lost" - sndSavnt215 = 169, // 0xA9 "Vehicle captured" - sndSavnt216 = 170, // 0xAA "Repair stopped" - sndSavnt218 = 171, // 0xAB "Outpost2 demo mode initiated" - sndSavnt219 = 172, // 0xAC "Please stand by" - sndSavnt220 = 173, // 0xAD "Command control terminated" - sndSavnt223 = 174, // 0xAE "Starship module manufactured" - sndSavnt224 = 175, // 0xAF "Satellite manufactured" - sndSavnt225 = 176, // 0xB0 "Wreckage loaded" - sndSavnt226 = 177, // 0xB1 "Food stores are plentiful" - sndSavnt228 = 178, // 0xB2 "Alliance formed with player1" - sndSavnt229 = 179, // 0xB3 "Alliance formed with player2" - sndSavnt230 = 180, // 0xB4 "Alliance formed with player3" - sndSavnt231 = 181, // 0xB5 "Alliance formed with player4" - sndSavnt232 = 182, // 0xB6 "Alliance formed with player5" - sndSavnt233 = 183, // 0xB7 "Alliance formed with player6" - sndSavnt234 = 184, // 0xB8 "Alliance with player1 broken" - sndSavnt235 = 185, // 0xB9 "Alliance with player2 broken" - sndSavnt236 = 186, // 0xBA "Alliance with player3 broken" - sndSavnt237 = 187, // 0xBB "Alliance with player4 broken" - sndSavnt238 = 188, // 0xBC "Alliance with player5 broken" - sndSavnt239 = 189, // 0xBD "Alliance with player6 broken" - sndSavnt240 = 190, // 0xBE "Transfer to player1 complete" - sndSavnt241 = 191, // 0xBF "Transfer to player2 complete" - sndSavnt242 = 192, // 0xC0 "Transfer to player3 complete" - sndSavnt243 = 193, // 0xC1 "Transfer to player4 complete" - sndSavnt244 = 194, // 0xC2 "Transfer to player5 complete" - sndSavnt245 = 195, // 0xC3 "Transfer to player6 complete" - sndSavnt246 = 196, // 0xC4 "Transfer received from player1" - sndSavnt247 = 197, // 0xC5 "Transfer received from player2" - sndSavnt248 = 198, // 0xC6 "Transfer received from player3" - sndSavnt249 = 199, // 0xC7 "Transfer received from player4" - sndSavnt250 = 200, // 0xC8 "Transfer received from player5" - sndSavnt251 = 201, // 0xC9 "Transfer received from player6" - sndSavnt252 = 202, // 0xCA "Player1 has allied with you" - sndSavnt253 = 203, // 0xCB "Player2 has allied with you" - sndSavnt254 = 204, // 0xCC "Player3 has allied with you" - sndSavnt255 = 205, // 0xCD "Player4 has allied with you" - sndSavnt256 = 206, // 0xCE "Player5 has allied with you" - sndSavnt257 = 207, // 0xCF "Player6 has allied with you" - sndSavnt258 = 208, // 0xD0 "Player1 has broken the alliance" - sndSavnt259 = 209, // 0xD1 "Player2 has broken the alliance" - sndSavnt260 = 210, // 0xD2 "Player3 has broken the alliance" - sndSavnt261 = 211, // 0xD3 "Player4 has broken the alliance" - sndSavnt262 = 212, // 0xD4 "Player5 has broken the alliance" - sndSavnt263 = 213, // 0xD5 "Player6 has broken the alliance" - sndSavnt264 = 214, // 0xD6 "Ion drive module deployed" - sndSavnt265 = 215, // 0xD7 "Fusion drive module deployed" - sndSavnt266 = 216, // 0xD8 "Command module deployed" - sndSavnt267 = 217, // 0xD9 "Fueling systems deployed" - sndSavnt268 = 218, // 0xDA "Habitat ring deployed" - sndSavnt269 = 219, // 0xDB "Sensor package deployed" - sndSavnt270 = 220, // 0xDC "Skydock operational" - sndSavnt271 = 221, // 0xDD "Stasis systems deployed" - sndSavnt272 = 222, // 0xDE "Orbital package deployed" - sndSavnt273 = 223, // 0xDF "Phoenix module deployed" - sndSavnt274 = 224, // 0xE0 "Rare metals storage module deployed" - sndSavnt275 = 225, // 0xE1 "Common metals storage module deployed" - sndSavnt276 = 226, // 0xE2 "Food storage module deployed" - sndSavnt277 = 227, // 0xE3 "Colonist evacuation module deployed" + sndSavnt212 = 94, // 0x5E "Structure completed" + sndSavant2 = 95, // 0x5F "Research completed" + sndSavant3 = 96, // 0x60 "Our colony is under attack" + sndSavant4 = 97, // 0x61 "We are under attack" + sndSavant6 = 98, // 0x62 "Vehicle ready" + sndSavant7 = 99, // 0x63 "Consumer items completed" + sndSavant8 = 100, // 0x64 "Structure kit manufactured" + sndSavant9 = 101, // 0x65 "Spider ready" + sndSavant10 = 102, // 0x66 "Scorpion ready" + sndSavant11 = 103, // 0x67 "Structure destroyed" + sndSavnt206 = 104, // 0x68 "Vehicle destroyed" + sndSavant13 = 105, // 0x69 "Database reconstructed" + sndSavant14 = 106, // 0x6A "Enemy unit sighted" + sndSavant15 = 107, // 0x6B "Vehicle repaired" + sndSavnt204 = 108, // 0x6C "Structure repaired" + sndSavant17 = 109, // 0x6D "Warning, missile launch detected" + sndSavant18 = 110, // 0x6E "Warning, incoming missile" + sndSavant19 = 111, // 0x6F "Morale is excellent" + sndSavant20 = 112, // 0x70 "Morale is good" + sndSavant21 = 113, // 0x71 "Morale is fair" + sndSavant22 = 114, // 0x72 "Morale is poor" + sndSavant23 = 115, // 0x73 "Morale is terrible" + sndSavant24 = 116, // 0x74 "Food production in surplus" + sndSavant25 = 117, // 0x75 "Caution, food storage diminishing" + sndSavant26 = 118, // 0x76 "Warning, people are starving" + sndSavant27 = 119, // 0x77 "Power levels optimal" + sndSavant28 = 120, // 0x78 "Warning, power levels marginal" + sndSavant29 = 121, // 0x79 "Warning, power shortage" + sndSavant30 = 122, // 0x7A "New mission objective" + sndSavant32 = 123, // 0x7B "Edward satellite deployed" + sndSavant33 = 124, // 0x7C "Solar power satellite deployed" + sndSavant46 = 125, // 0x7D "Rocket launched" + sndSavant47 = 126, // 0x7E "RLV launched" + sndSavant48 = 127, // 0x7F "RLV ready" + sndSavant49 = 128, // 0x80 "Rocket ready" + sndSavnt221 = 129, // 0x81 "Common metals storage needed" + sndSavant51 = 130, // 0x82 "Rare metal storage needed" + sndSavant53 = 131, // 0x83 "New worker ready" + sndSavant58 = 132, // 0x84 "Our people are dying" + sndSavnt202 = 133, // 0x85 "Structure disabled" + sndSavnt227 = 134, // 0x86 (Beep) "You have failed, our colony is doomed" + sndSavant65 = 135, // 0x87 (Beep) "You have done well, our colony is surviving" + sndSavant66 = 136, // 0x88 "Caution, volcano watch initiated" + sndSavant67 = 137, // 0x89 "Alert, volcanic eruption imminent" + sndSavant68 = 138, // 0x8A "Warning, volcanic eruption detected" + sndSavant69 = 139, // 0x8B "Caution, vortex watch initiated" + sndSavant70 = 140, // 0x8C "Alert, vortex imminent" + sndSavant71 = 141, // 0x8D "Warning, vortex detected" + sndSavant72 = 142, // 0x8E "Caution, electrical storm watch initiated" + sndSavant73 = 143, // 0x8F "Alert, electrical storm imminent" + sndSavant74 = 144, // 0x90 "Warning, electrical storm detected" + sndSavant75 = 145, // 0x91 "Caution, meteor watch initiated" + sndSavant76 = 146, // 0x92 "Alert, meteor impact imminent" + sndSavant77 = 147, // 0x93 "Warning, meteor approaching" + sndSavant78 = 148, // 0x94 "Caution, seismic watch initiated" + sndSavant79 = 149, // 0x95 "Alert, seismic event imminent" + sndSavant80 = 150, // 0x96 "Warning, seismic event detected" + sndSavant93 = 151, // 0x97 "Wreckage located" + sndSavnt278 = 152, // 0x98 "The blight is approaching" + sndSavnt207 = 153, // 0x99 "Damage warning" + sndSavant96 = 154, // 0x9A "Mining location surveyed" + sndSavant97 = 155, // 0x9B "Cannot deploy" + sndSavant98 = 156, // 0x9C "Command control initiated" + sndSavant99 = 157, // 0x9D "Savant series computer activated, Outpost2 demo initiated, please choose an option" + sndSavnt100 = 158, // 0x9E "Can not comply" + sndSavnt101 = 159, // 0x9F "Commander, a volcanic eruption is imminent, evacuate the colony and rendezvous at the mining beacon north of our location" + sndSavnt201 = 160, // 0xA0 "Data transmitted" + sndSavnt203 = 161, // 0xA1 "Structures disabled" + sndSavnt205 = 162, // 0xA2 "Reinforcements ready" + sndSavnt208 = 163, // 0xA3 "Wall completed" + sndSavnt209 = 164, // 0xA4 "Tube completed" + sndSavnt210 = 165, // 0xA5 "Bulldozing completed" + sndSavnt211 = 166, // 0xA6 "Vehicle infected" + sndSavnt213 = 167, // 0xA7 "Structure lost" + sndSavnt214 = 168, // 0xA8 "Vehicle lost" + sndSavnt215 = 169, // 0xA9 "Vehicle captured" + sndSavnt216 = 170, // 0xAA "Repair stopped" + sndSavnt218 = 171, // 0xAB "Outpost2 demo mode initiated" + sndSavnt219 = 172, // 0xAC "Please stand by" + sndSavnt220 = 173, // 0xAD "Command control terminated" + sndSavnt223 = 174, // 0xAE "Starship module manufactured" + sndSavnt224 = 175, // 0xAF "Satellite manufactured" + sndSavnt225 = 176, // 0xB0 "Wreckage loaded" + sndSavnt226 = 177, // 0xB1 "Food stores are plentiful" + sndSavnt228 = 178, // 0xB2 "Alliance formed with player1" + sndSavnt229 = 179, // 0xB3 "Alliance formed with player2" + sndSavnt230 = 180, // 0xB4 "Alliance formed with player3" + sndSavnt231 = 181, // 0xB5 "Alliance formed with player4" + sndSavnt232 = 182, // 0xB6 "Alliance formed with player5" + sndSavnt233 = 183, // 0xB7 "Alliance formed with player6" + sndSavnt234 = 184, // 0xB8 "Alliance with player1 broken" + sndSavnt235 = 185, // 0xB9 "Alliance with player2 broken" + sndSavnt236 = 186, // 0xBA "Alliance with player3 broken" + sndSavnt237 = 187, // 0xBB "Alliance with player4 broken" + sndSavnt238 = 188, // 0xBC "Alliance with player5 broken" + sndSavnt239 = 189, // 0xBD "Alliance with player6 broken" + sndSavnt240 = 190, // 0xBE "Transfer to player1 complete" + sndSavnt241 = 191, // 0xBF "Transfer to player2 complete" + sndSavnt242 = 192, // 0xC0 "Transfer to player3 complete" + sndSavnt243 = 193, // 0xC1 "Transfer to player4 complete" + sndSavnt244 = 194, // 0xC2 "Transfer to player5 complete" + sndSavnt245 = 195, // 0xC3 "Transfer to player6 complete" + sndSavnt246 = 196, // 0xC4 "Transfer received from player1" + sndSavnt247 = 197, // 0xC5 "Transfer received from player2" + sndSavnt248 = 198, // 0xC6 "Transfer received from player3" + sndSavnt249 = 199, // 0xC7 "Transfer received from player4" + sndSavnt250 = 200, // 0xC8 "Transfer received from player5" + sndSavnt251 = 201, // 0xC9 "Transfer received from player6" + sndSavnt252 = 202, // 0xCA "Player1 has allied with you" + sndSavnt253 = 203, // 0xCB "Player2 has allied with you" + sndSavnt254 = 204, // 0xCC "Player3 has allied with you" + sndSavnt255 = 205, // 0xCD "Player4 has allied with you" + sndSavnt256 = 206, // 0xCE "Player5 has allied with you" + sndSavnt257 = 207, // 0xCF "Player6 has allied with you" + sndSavnt258 = 208, // 0xD0 "Player1 has broken the alliance" + sndSavnt259 = 209, // 0xD1 "Player2 has broken the alliance" + sndSavnt260 = 210, // 0xD2 "Player3 has broken the alliance" + sndSavnt261 = 211, // 0xD3 "Player4 has broken the alliance" + sndSavnt262 = 212, // 0xD4 "Player5 has broken the alliance" + sndSavnt263 = 213, // 0xD5 "Player6 has broken the alliance" + sndSavnt264 = 214, // 0xD6 "Ion drive module deployed" + sndSavnt265 = 215, // 0xD7 "Fusion drive module deployed" + sndSavnt266 = 216, // 0xD8 "Command module deployed" + sndSavnt267 = 217, // 0xD9 "Fueling systems deployed" + sndSavnt268 = 218, // 0xDA "Habitat ring deployed" + sndSavnt269 = 219, // 0xDB "Sensor package deployed" + sndSavnt270 = 220, // 0xDC "Skydock operational" + sndSavnt271 = 221, // 0xDD "Stasis systems deployed" + sndSavnt272 = 222, // 0xDE "Orbital package deployed" + sndSavnt273 = 223, // 0xDF "Phoenix module deployed" + sndSavnt274 = 224, // 0xE0 "Rare metals storage module deployed" + sndSavnt275 = 225, // 0xE1 "Common metals storage module deployed" + sndSavnt276 = 226, // 0xE2 "Food storage module deployed" + sndSavnt277 = 227, // 0xE3 "Colonist evacuation module deployed" sndMis_fire = 228, // 0xE4 sndAcid2 = 229, // 0xE5 // sndMis_fire = 230, // 0xE6 diff --git a/EnumTechID.h b/EnumTechID.h index d820bf9..07590bd 100644 --- a/EnumTechID.h +++ b/EnumTechID.h @@ -47,7 +47,7 @@ enum TechID techAdvancedRoboticManipulatorArmEden = 7213, techAdvancedRoboticManipulatorArmPlymouth = 7214, techDissipatingAdhesives = 5202, - techEnhancedDefensizeFortifications = 8306, + techEnhancedDefensiveFortifications = 8306, techExplosiveCharges = 7102, techForumReconfiguration = 5408, techGeothermalPower = 5115, diff --git a/OP2Helper.cpp b/OP2Helper.cpp index e803cea..dc48f50 100644 --- a/OP2Helper.cpp +++ b/OP2Helper.cpp @@ -69,7 +69,7 @@ void CreateLavaWallLine(LOCATION loc1, LOCATION loc2) void CreateMicrobeWallLine(LOCATION loc1, LOCATION loc2) { - ExecuteAcrossLine(loc1, loc2, + ExecuteAcrossLine(loc1, loc2, [](int x, int y) { TethysGame::CreateWallOrTube(x, y, 0, map_id::mapMicrobeWall); } ); } @@ -172,7 +172,7 @@ void CreateStarshipVictoryCondition() trigger = CreateCountTrigger(1, 1, -1, mapFoodCargo, mapAny, 1, cmpGreaterEqual, "NoResponseToTrigger"); CreateVictoryCondition(1, 1, trigger, "Evacuate 10000 units of food to spacecraft"); trigger = CreateCountTrigger(1, 1, -1, mapCommonMetalsCargo, mapAny, 1, cmpGreaterEqual, "NoResponseToTrigger"); - CreateVictoryCondition(1, 1, trigger, "Evacuate 10000 units of Commom Metals to spacecraft"); + CreateVictoryCondition(1, 1, trigger, "Evacuate 10000 units of Common Metals to spacecraft"); trigger = CreateCountTrigger(1, 1, -1, mapRareMetalsCargo, mapAny, 1, cmpGreaterEqual, "NoResponseToTrigger"); CreateVictoryCondition(1, 1, trigger, "Evacuate 10000 units of Rare Metals to spacecraft"); } diff --git a/OP2Helper.h b/OP2Helper.h index 4dff00b..358fc65 100644 --- a/OP2Helper.h +++ b/OP2Helper.h @@ -54,14 +54,14 @@ void InitPlayerResources(int playerNum, const ResourceSet& resourceSet = CES1Res // Create wall or tubes in a straight line or L pattern -// L patterns draw counter - clockwise between the two points +// L patterns draw counter-clockwise between the two points void CreateTubeLine(LOCATION loc1, LOCATION loc2); void CreateWallLine(LOCATION loc1, LOCATION loc2); void CreateLavaWallLine(LOCATION loc1, LOCATION loc2); void CreateMicrobeWallLine(LOCATION loc1, LOCATION loc2); // Record line of tubes or walls to a BuildingGroup in a straight line or L pattern -// L patterns draw counter - clockwise between the two points +// L patterns draw counter-clockwise between the two points void RecordTubeLine(BuildingGroup& buildingGroup, LOCATION loc1, LOCATION loc2); void RecordWallLine(BuildingGroup& buildingGroup, const LOCATION& loc1, const LOCATION& loc2); void RecordLavaWallLine(BuildingGroup& buildingGroup, const LOCATION& loc1, const LOCATION& loc2); @@ -109,7 +109,7 @@ void CenterViewOnPlayerCC(); // Overload taking a location object void CenterViewOn(enum PlayerNum playerNum, const LOCATION& location); -// To send message to all players, Set toPlayerNum to -1. +// To send a message to all players, set toPlayerNum to -1. // Default sound effect is phone ringing (sending text message to other player) void AddMapMessage(const char* message, const Unit& sourceUnit, int soundIndex = SoundID::sndMessage2, int toPlayerNum = PlayerNum::PlayerAll); void AddMapMessage(const char* message, const LOCATION& location, int soundIndex = SoundID::sndMessage2, int toPlayerNum = PlayerNum::PlayerAll); diff --git a/ReadMe.md b/ReadMe.md index 5e2ea53..31c8522 100644 --- a/ReadMe.md +++ b/ReadMe.md @@ -2,7 +2,7 @@ The OP2Helper library is used to ease development of Outpost 2 missions. It wraps the Outpost2DLL library, and builds functionality on top of the exported methods. While the Outpost2DLL library is aimed at providing the raw exports from Outpost2.exe (and only the raw exports), the OP2Helper library contains custom code which builds functionality around the exported methods. -The OP2Helper library is intentionally simple, in that it depends only the on exported methods from Outpost2DLL, ensuring code stays safe and portable. In particular, this library does not attempt any memory hacking to reach into the game and manipulate parts that are not exported. See [HFL](https://github.com/OutpostUniverse/HFL) and [OP2Internal](https://github.com/OutpostUniverse/OP2Internal) for more advanced memory hacking needs. +The OP2Helper library is intentionally simple, in that it depends only on the exported methods from Outpost2DLL, ensuring code stays safe and portable. In particular, this library does not attempt any memory hacking to reach into the game and manipulate parts that are not exported. See [HFL](https://github.com/OutpostUniverse/HFL) and [OP2Internal](https://github.com/OutpostUniverse/OP2Internal) for more advanced memory hacking needs. A few things the OP2Helper library helps with: * Creating base layouts (as data)