~ubuntu-branches/ubuntu/natty/smc/natty

« back to all changes in this revision

Viewing changes to src/overworld/world_player.h

  • Committer: Bazaar Package Importer
  • Author(s): Muammar El Khatib
  • Date: 2009-08-18 11:28:01 UTC
  • mfrom: (1.1.7 upstream) (5.1.4 squeeze)
  • Revision ID: james.westby@ubuntu.com-20090818112801-qfhdmqouq8m1fwab
Tags: 1.9-1
* New upstream release.
* Bumped standards version to 3.8.3. No changes were needed in order to 
  accomplish this.

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
 
28
28
/* *** *** *** *** *** *** *** cOverworld_Player *** *** *** *** *** *** *** *** *** *** */
29
29
 
30
 
class cOverworld_Player : public cImageObjectSprite
 
30
class cOverworld_Player : public cAnimated_Sprite
31
31
{
32
32
public:
33
33
        cOverworld_Player( void );
38
38
        // Unload images
39
39
        void Unload_Images( void );
40
40
 
 
41
        /* Set the direction
 
42
         * if new_start_direction is set also set the start/editor direction
 
43
        */
 
44
        virtual void Set_Direction( const ObjectDirection dir, bool new_start_direction = 0 );
 
45
 
 
46
        // Set the Type
 
47
        void Set_Type( Maryo_type new_type );
 
48
 
41
49
        // Update
42
50
        virtual void Update( void );
43
51
        // Draw
93
101
        /* Automatically corrects Maryo's position to the walkable Layer Line
94
102
         * with the given size and the minimal distance to not-walkable area
95
103
        */
96
 
        void Auto_Pos_Correction( float size = 1.7f, float min_distance = 5 );
 
104
        void Auto_Pos_Correction( float size = 1.7f, float min_distance = 5.0f );
97
105
 
98
106
        // state
99
107
        Maryo_type maryo_state;
104
112
        // current line ( if walking )
105
113
        int current_line;
106
114
 
107
 
        // Animation counter
108
 
        float anim_counter;
109
 
        // Animation Speed
110
 
        float anim_speed;
111
 
        // last image available for the animation
112
 
        unsigned int anim_max;
113
 
 
114
115
        // if touched a Waypoint use fixed walking
115
116
        bool fixed_walking;
116
117