~kubuntu-members/konquest/4.11

Viewing all changes in revision 641.

  • Committer: Nemanja Hirsl
  • Author(s): Alexander Schuch
  • Date: 2013-10-10 07:22:18 UTC
  • Revision ID: git-v1:840cc42cade6f1e84894a288e1e0cf6f8b6bb060
Refactor player selection and added example AI.

        The default AI is handled by players/ai/default/default.cpp. The difficulty is
        wrapped in own classes so that the external interface is the same for all
        players (AI and human).

        Adding new AI players is as easy as to implement the code in an own class, add
        a GUI wrapper (see ai/example) and add the GUI wrapper to m_selectablePlayer in
        NewGameDlg constructor.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: