Skip to content
This repository was archived by the owner on Jan 5, 2024. It is now read-only.

Commit 4814ac7

Browse files
committed
Replace "Atom:s" with "Atoms"
1 parent 40eab02 commit 4814ac7

File tree

1 file changed

+25
-25
lines changed

1 file changed

+25
-25
lines changed

Entities/AtomGroup.cpp

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ int AtomGroup::Create(MOSRotating *pOwnerMOSRotating, Material const *material,
205205
// If atoms are to be placed right at (below) the bitmap of the sprite.
206206
if (depth <= 0)
207207
{
208-
// First scan horizontally, and place Atom:s on outer silhouette edges.
208+
// First scan horizontally, and place Atoms on outer silhouette edges.
209209
for (y = 0; y < height; y += m_Resolution)
210210
{
211211
// Scan LEFT to RIGHT, placing one Atom on each first encountered silhouette edge
@@ -215,7 +215,7 @@ int AtomGroup::Create(MOSRotating *pOwnerMOSRotating, Material const *material,
215215
// Detect if we are crossing a silhouette boundary.
216216
if (getpixel(refSprite, x, y) != g_MaskColor)
217217
{
218-
// Mark that an atom has been put in this location, to avoid duplicate Atom:s
218+
// Mark that an atom has been put in this location, to avoid duplicate Atoms
219219
putpixel(checkBitmap, x, y, 99);
220220
AddAtomToGroup(x, y, spriteOffset, pOwnerMOSRotating, true);
221221
break;
@@ -229,15 +229,15 @@ int AtomGroup::Create(MOSRotating *pOwnerMOSRotating, Material const *material,
229229
// Detect if we are crossing a silhouette boundary.
230230
if (getpixel(refSprite, x, y) != g_MaskColor)
231231
{
232-
// Mark that an atom has been put in this location, to avoid duplicate Atom:s
232+
// Mark that an atom has been put in this location, to avoid duplicate Atoms
233233
putpixel(checkBitmap, x, y, 99);
234234
AddAtomToGroup(x, y, spriteOffset, pOwnerMOSRotating, true);
235235
break;
236236
}
237237
}
238238
}
239239

240-
// Then scan vertically, and place Atom:s on silhouette edge, but avoiding duplicates.
240+
// Then scan vertically, and place Atoms on silhouette edge, but avoiding duplicates.
241241
for (x = 0; x < width; x += m_Resolution)
242242
{
243243
// Scan TOP to BOTTOM, placing one Atom on each first encountered silhouette edge
@@ -352,7 +352,7 @@ int AtomGroup::Create(MOSRotating *pOwnerMOSRotating, Material const *material,
352352
// Depth is cleared in all directions, so go ahead and place Atom.
353353
if (clear && getpixel(checkBitmap, x, y) == g_MaskColor)
354354
{
355-
// Mark that an atom has been put in this location, to avoid duplicate Atom:s
355+
// Mark that an atom has been put in this location, to avoid duplicate Atoms
356356
putpixel(checkBitmap, x, y, 99);
357357
AddAtomToGroup(x, y, spriteOffset, pOwnerMOSRotating, false);
358358
}
@@ -574,7 +574,7 @@ void AtomGroup::Destroy(bool notInherited)
574574
// Friend operator: AtomGroup addition
575575
//////////////////////////////////////////////////////////////////////////////////////////
576576
// Description: Addition operator overload for AtomGroup:s which adds together the
577-
// Atom:s of two Groups and merges them into one.
577+
// Atoms of two Groups and merges them into one.
578578
579579
AtomGroup operator+(const AtomGroup &lhs, const AtomGroup &rhs)
580580
{
@@ -589,7 +589,7 @@ AtomGroup operator+(const AtomGroup &lhs, const AtomGroup &rhs)
589589
// Friend operator: AtomGroup pointer addition
590590
//////////////////////////////////////////////////////////////////////////////////////////
591591
// Description: Addition operator overload for AtomGroup:s pointer which adds together
592-
// the Atom:s of two Groups pointed to and merges them into one.
592+
// the Atoms of two Groups pointed to and merges them into one.
593593
// Ownership of the returned dallocated AG IS TRANSFERRED!
594594
595595
AtomGroup * operator+(const AtomGroup *lhs, const AtomGroup *rhs)
@@ -669,8 +669,8 @@ void AtomGroup::SetOwner(MOSRotating *newOwner)
669669
//////////////////////////////////////////////////////////////////////////////////////////
670670
// Method: AddAtoms
671671
//////////////////////////////////////////////////////////////////////////////////////////
672-
// Description: Adds a list of new Atom:s to the internal list that makes up this group.
673-
// Ownership of all Atom:s in the list IS NOT transferred!
672+
// Description: Adds a list of new Atoms to the internal list that makes up this group.
673+
// Ownership of all Atoms in the list IS NOT transferred!
674674

675675
void AtomGroup::AddAtoms(const std::list<Atom *> &atomList, long int subID, const Vector &offset, const Matrix &offsetRotation)
676676
{
@@ -803,7 +803,7 @@ bool AtomGroup::IsIgnoringMOID(MOID which)
803803
//////////////////////////////////////////////////////////////////////////////////////////
804804
// Method: Travel
805805
//////////////////////////////////////////////////////////////////////////////////////////
806-
// Description: Makes the group of Atom:s travel together and react when terrain is
806+
// Description: Makes the group of Atoms travel together and react when terrain is
807807
// hit. Effects are direcly applied to the owning MovableObject.
808808

809809
float AtomGroup::Travel(const float travelTime,
@@ -834,7 +834,7 @@ float AtomGroup::Travel(const float travelTime,
834834
//////////////////////////////////////////////////////////////////////////////////////////
835835
// Method: Travel
836836
//////////////////////////////////////////////////////////////////////////////////////////
837-
// Description: Makes the group of Atom:s travel together and react when terrain is
837+
// Description: Makes the group of Atoms travel together and react when terrain is
838838
// hit. Effects are applied to the passed in variables.
839839

840840
float AtomGroup::Travel(Vector &position,
@@ -1144,7 +1144,7 @@ float AtomGroup::Travel(Vector &position,
11441144

11451145
// Yes, MO hit. See if we already have another atom hitting this MO in this step.
11461146
// If not, then create a new deque unique for that MO's ID
1147-
// and insert into the map of MO-hitting Atom:s.
1147+
// and insert into the map of MO-hitting Atoms.
11481148
if (!(hitMOAtoms.count(tempMOID)))
11491149
{
11501150
list<Atom *> newDeque;
@@ -1184,7 +1184,7 @@ float AtomGroup::Travel(Vector &position,
11841184
if (hitTerrAtoms.empty() && hitMOAtoms.empty())
11851185
continue;
11861186

1187-
// There are colliding Atom:s, therefore the group hit something.
1187+
// There are colliding Atoms, therefore the group hit something.
11881188
hitStep = true;
11891189
++hitCount;
11901190

@@ -1207,7 +1207,7 @@ float AtomGroup::Travel(Vector &position,
12071207
rotation += rotDelta * segProgress;
12081208

12091209
// TERRAIN COLLISION RESPONSE /////////////////////////////////////////////////////
1210-
// Determine which of the colliding Atom:s will penetrate the terrain.
1210+
// Determine which of the colliding Atoms will penetrate the terrain.
12111211
bool somethingPenetrated = false;
12121212
do
12131213
{
@@ -1444,7 +1444,7 @@ float AtomGroup::Travel(Vector &position,
14441444
// Clear out the MOIDs from the ignore list.
14451445
ClearMOIDIgnoreList();
14461446

1447-
// If too many Atom:s are ignoring terrain, make a hole for the body so they won't
1447+
// If too many Atoms are ignoring terrain, make a hole for the body so they won't
14481448
int ignoreCount = 0;
14491449
int maxIgnore = m_Atoms.size() / 2;
14501450
for (const Atom *atom : m_Atoms)
@@ -1480,7 +1480,7 @@ float AtomGroup::Travel(Vector &position,
14801480
//////////////////////////////////////////////////////////////////////////////////////////
14811481
// Method: PushTravel
14821482
//////////////////////////////////////////////////////////////////////////////////////////
1483-
// Description: Makes the group of Atom:s travel together and react when terrain is
1483+
// Description: Makes the group of Atoms travel together and react when terrain is
14841484
// hit. Effects are applied to the passed in variables. This is the
14851485
// version that doesn't do rotations, only translational effect.
14861486

@@ -1776,7 +1776,7 @@ before adding them to the MovableMan.
17761776
if (hitTerrAtoms.empty() && hitMOAtoms.empty())
17771777
continue;
17781778

1779-
// There are colliding Atom:s, therefore the group hit something.
1779+
// There are colliding Atoms, therefore the group hit something.
17801780
hitPos[X] = intPos[X];
17811781
hitPos[Y] = intPos[Y];
17821782
++hitCount;
@@ -1905,7 +1905,7 @@ before adding them to the MovableMan.
19051905
}
19061906

19071907
// TERRAIN COLLISION RESPONSE /////////////////////////////////////////////////////
1908-
// Determine which of the colliding Atom:s will penetrate the terrain.
1908+
// Determine which of the colliding Atoms will penetrate the terrain.
19091909
bool somethingPenetrated = false;
19101910
do {
19111911
somethingPenetrated = false;
@@ -1930,7 +1930,7 @@ before adding them to the MovableMan.
19301930
} while (!hitTerrAtoms.empty() && somethingPenetrated);
19311931

19321932
// TERRAIN BOUNCE //////////////////////////////////////////////////////////////////
1933-
// If some Atom:s could not penetrate even though all the mass was on them,
1933+
// If some Atoms could not penetrate even though all the mass was on them,
19341934
// gather the bounce results and apply them to the owner.
19351935
if (!hitTerrAtoms.empty())
19361936
{
@@ -2032,7 +2032,7 @@ before adding them to the MovableMan.
20322032
}
20332033
}
20342034
// TERRAIN SINK ////////////////////////////////////////////////////////////////
2035-
// Else all Atom:s must have penetrated and therefore the entire group has
2035+
// Else all Atoms must have penetrated and therefore the entire group has
20362036
// sunken into the terrain. Get the penetration resistance results and
20372037
// apply them to the owner.
20382038
else if (!penetratingAtoms.empty())
@@ -2116,7 +2116,7 @@ before adding them to the MovableMan.
21162116
//////////////////////////////////////////////////////////////////////////////////////////
21172117
// Method: PushAsLimb
21182118
//////////////////////////////////////////////////////////////////////////////////////////
2119-
// Description: Makes the group of Atom:s travel together as a limb, relative to the
2119+
// Description: Makes the group of Atoms travel together as a limb, relative to the
21202120
// position of the owning MovableObject. If terrain is hit, resulting
21212121
// accelerations should be applied to the MovableObject's static body.
21222122

@@ -2191,7 +2191,7 @@ bool AtomGroup::PushAsLimb(const Vector &jointPos,
21912191
//////////////////////////////////////////////////////////////////////////////////////////
21922192
// Method: FlailAsLimb
21932193
//////////////////////////////////////////////////////////////////////////////////////////
2194-
// Description: Makes the group of Atom:s travel together as a lifeless limb, constrained
2194+
// Description: Makes the group of Atoms travel together as a lifeless limb, constrained
21952195
// to a radius around the joint pin in the center.
21962196

21972197
void AtomGroup::FlailAsLimb(const Vector ownerPos,
@@ -2242,7 +2242,7 @@ void AtomGroup::FlailAsLimb(const Vector ownerPos,
22422242
//////////////////////////////////////////////////////////////////////////////////////////
22432243
// Method: InTerrain
22442244
//////////////////////////////////////////////////////////////////////////////////////////
2245-
// Description: Checks whether any of the Atom:s in this AtomGroup are on terrain
2245+
// Description: Checks whether any of the Atoms in this AtomGroup are on terrain
22462246
// pixels.
22472247

22482248
bool AtomGroup::InTerrain()
@@ -2304,7 +2304,7 @@ float AtomGroup::RatioInTerrain()
23042304
//////////////////////////////////////////////////////////////////////////////////////////
23052305
// Method: ResolveTerrainIntersection
23062306
//////////////////////////////////////////////////////////////////////////////////////////
2307-
// Description: Checks whether any of the Atom:s in this AtomGroup are on top of
2307+
// Description: Checks whether any of the Atoms in this AtomGroup are on top of
23082308
// terrain pixels, and if so, attempt to move the OwnerMO of this out
23092309
// so none of this' Atoms are inside any other MOS's silhouette anymore.
23102310

@@ -2412,7 +2412,7 @@ bool AtomGroup::ResolveTerrainIntersection(Vector &position, Matrix &rotation, u
24122412
//////////////////////////////////////////////////////////////////////////////////////////
24132413
// Method: ResolveMOSIntersection
24142414
//////////////////////////////////////////////////////////////////////////////////////////
2415-
// Description: Checks whether any of the Atom:s in this AtomGroup are on top of
2415+
// Description: Checks whether any of the Atoms in this AtomGroup are on top of
24162416
// other MOSprite:s, and if so, attempt to move the OwnerMO of this out
24172417
// so none of this' Atoms are inside any other MOS's silhouette anymore.
24182418

0 commit comments

Comments
 (0)