src/SinglePlayer.hh
author Tero Marttila <terom@fixme.fi>
Fri, 11 Sep 2009 15:34:48 +0300
changeset 446 e411c0799fcc
parent 409 1a03ff151abc
permissions -rw-r--r--
fix NetworkSocket to not forget want_* state if resetting between connect()'s
#ifndef SINGLE_PLAYER_HH
#define SINGLE_PLAYER_HH

#include "GameState.hh"

/**
 * Simple class used to define the LocalPlayer used by Engine to run a local non-network game
 */
class SinglePlayer : public LocalPlayer {
    public:
        SinglePlayer (GameState &state) :
            Player(state, Vector(state.world.dimensions / 2), true)
        { 
        
        }
};

#endif /* SINGLE_PLAYER_HH */