데이터와 기능에 대한 접근을 제한하는 캡슐화에 초점을 맞춰 불변속성이 지역에만 영향을 주게 만드는 데 중점.
디미터 법칙(Law of Demeter)
에서 유래했다.https://github.com/FiveLinesofCodeStudy/2D-Puzzle-Compose/commit/73c66dc8cba79ceeeaddd42f65f59358e9b2b193
playerx
,playery
,drawPlayer
Player 클래스로 묶기https://github.com/FiveLinesofCodeStudy/2D-Puzzle-Compose/commit/0f2a12259c7d0ac7b8c5e773cd1ab28126d032d9
https://github.com/FiveLinesofCodeStudy/2D-Puzzle-Compose/commit/536f83e8908ecc98baea293dc58c1c5dfba40872