Skip to content

Commit

Permalink
Merge pull request #31 from stormwatch/edit/ask-mass
Browse files Browse the repository at this point in the history
“Ask” rather than “access”
  • Loading branch information
hilaire authored Jan 31, 2024
2 parents fb74101 + 29df905 commit fdc605d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions en/chapter-04/contents.texinfo
Original file line number Diff line number Diff line change
Expand Up @@ -910,10 +910,10 @@ SpaceShip>>gravity
@return{} [-10 * self mass * self starMass / (position r raisedTo: 3) * position]
on: Error do: [0 @@ 0]}

Observe the message @smalltalk{#starMass} sent to the space ship. We
have not yet figured out how to access the star mass from a space ship
instance. Its @method{starMass} method can just return, for now, the
constant 8000.
Observe the message @smalltalk{#starMass} sent to the spaceship herself.
We, as a spaceship, have not yet figured out how to ask the central star
for its stellar mass. Our @method{starMass} method can just return, for
now, the number 8000.

@c Explain the SpaceWar step method
The game play is the responsibility of a @class{SpaceWar} instance. At
Expand Down

0 comments on commit fdc605d

Please sign in to comment.