src/Player.cc
changeset 239 550397d9d479
parent 237 3d5465bcb67d
child 241 e95b1602d836
equal deleted inserted replaced
238:15193c2bbe2f 239:550397d9d479
    19 const int img_height = 9;
    19 const int img_height = 9;
    20 const int img_width = 10;
    20 const int img_width = 10;
    21 
    21 
    22 Player::Player(GameState &state, Vector position, bool visible) : 
    22 Player::Player(GameState &state, Vector position, bool visible) : 
    23     PhysicsObject(state.world, PLAYER_MASS, position, Vector(0, 0)), state(state), visible(visible),
    23     PhysicsObject(state.world, PLAYER_MASS, position, Vector(0, 0)), state(state), visible(visible),
    24     weapons(buildWeaponsList()), selectedWeapon(0), changing(false), animation_step(0), rope(*this) 
    24     weapons(buildWeaponsList()), selectedWeapon(0), animation_step(0), rope(*this) 
    25 {
    25 {
    26     // XXX: populate weapons from somewhere else
    26     // XXX: populate weapons from somewhere else
    27 
    27 
    28     // build the player's shape
    28     // build the player's shape
    29     // XXX: these dimensions are incorrect...
    29     // XXX: these dimensions are incorrect...