EDIT:EDIT: GamePlan should be probably called Board as answer of Janne Karila suggests. Just to clarify what I meant by that name with my flawed English.
Is it correct that
GamePlanprocesses shooting (in the methodhit)?Is
hita good name for that method or should it be something likeprocess_hit? BecauseGamePlanis being hit, it is not hitting anything. Ishitstill good in such case? This is probably my biggest concern.Should ships be represented as objects of a class Ship
Shipinstead?Is
GamePlana good thing to have or is it useless? I mean I could make class AI that directly ownsshipsbut I am not sure where stuff likeSHIP_COUNTSwould go then. I have also planned that I will useGamePlanto generate ship positions (henceSHIP_COUNTSandDIMX,DIMYwhich are unused atm) but plan generation could also easily go to AI, I guess.Is there anything else that is wrong?