the one doing the hitting would be in the nominative case, the thing hit would be in the accusative, and the one to whom it was hit in the dative case and the cases would be indicated by the endings of the nouns.

And the means by which it was hit in the ablative.

Marcus (nom.) hit the ball (acc.) with the bat (abl.) to the outfielder (dat.) Marcus pelotam fuste exagritatori feriebat.