Changeset 328


Ignore:
Timestamp:
Feb 1, 2011, 6:08:29 PM (10 years ago)
Author:
sam
Message:

Make Entity variable members private.

Location:
trunk/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/entity.h

    r221 r328  
    3333
    3434    virtual char const *GetName();
     35    inline int IsDestroying() { return destroy; }
    3536
    3637    virtual void TickGame(float deltams);
    3738    virtual void TickDraw(float deltams);
    38 
    39     Entity *gamenext, *drawnext, *autonext;
    40     int ref, autorelease, destroy;
    4139
    4240    enum
     
    7674    state;
    7775#endif
     76
     77private:
     78    Entity *gamenext, *drawnext, *autonext;
     79    int ref, autorelease, destroy;
    7880};
    7981
  • trunk/src/font.cpp

    r326 r328  
    8585    Entity::TickDraw(deltams);
    8686
    87     if (destroy)
     87    if (IsDestroying())
    8888    {
    8989        if (data->img)
  • trunk/src/tileset.cpp

    r313 r328  
    104104    Entity::TickDraw(deltams);
    105105
    106     if (destroy)
     106    if (IsDestroying())
    107107    {
    108108        if (data->img)
Note: See TracChangeset for help on using the changeset viewer.