Wireless ad hoc network is suitable for a large range of applications but vulnerable to various attacks due to its special characteristics. Despite of the vital importance and ongoing research efforts, the security of wireless ad hoc network remains an open problem. Recently, game theory has been receiving immense concern. It provides rich set of mathematical tools for analyzing attacks and designing corresponding countermeasures. However, game theoretic approaches cannot directly be applicable to all kinds of attacks. In this paper, we present a classification which associates the characteristics of attacks with the applicability of game theory. By illustrating the different players in a variety of game models, we provide a comprehensive view on game based solutions to attacks in wireless ad hoc networks.