src/Player.hh
changeset 248 e40ef56dc62c
parent 241 e95b1602d836
child 255 99431fdb0dc8
equal deleted inserted replaced
247:b87f68be579f 248:e40ef56dc62c
    69         /*
    69         /*
    70          * Drawing requires the skin texture, which is loaded on-demand when draw is called
    70          * Drawing requires the skin texture, which is loaded on-demand when draw is called
    71          */
    71          */
    72         static bool skin_loaded;
    72         static bool skin_loaded;
    73         static CL_Surface skin_surface;
    73         static CL_Surface skin_surface;
    74         virtual void draw (Graphics *g);
    74         virtual void draw (Graphics *g, Vector camera = Vector(0, 0));
    75 };
    75 };
    76 
    76 
    77 class LocalPlayer : public virtual Player {
    77 class LocalPlayer : public virtual Player {
    78     private:
    78     private:
    79         /*
    79         /*
    95         virtual void handleInput (PlayerInput input);
    95         virtual void handleInput (PlayerInput input);
    96         
    96         
    97         /*
    97         /*
    98          * As Player, but also draws the current weapon name if displayWeapon
    98          * As Player, but also draws the current weapon name if displayWeapon
    99          */
    99          */
   100         virtual void draw (Graphics *g, bool displayWeapon);
   100         virtual void draw (Graphics *g, bool displayWeapon, Vector camera);
   101 };
   101 };
   102 
   102 
   103 class RemotePlayer : public virtual Player {
   103 class RemotePlayer : public virtual Player {
   104     protected:
   104     protected:
   105 };
   105 };