Ignore:
Timestamp:
Jul 24, 2013, 9:43:56 PM (8 years ago)
Author:
sam
Message:

ticker: replace linked lists wih dynamic arrays for entity groups.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/entity.h

    r2816 r2817  
    2525{
    2626
     27struct InitState
     28{
     29    enum Value
     30    {
     31        Unknown,
     32        Error,
     33        NeedInitDraw,
     34        NeedInitGame,
     35        Ready,
     36    }
     37    m_value;
     38
     39    inline InitState(Value v) : m_value(v) {}
     40    inline operator Value() { return m_value; }
     41};
     42
    2743class Entity
    2844{
     
    4056
    4157    inline int IsDestroying() { return m_destroy; }
     58
     59    virtual void InitGame();
     60    virtual void InitDraw();
    4261
    4362    virtual void TickGame(float seconds);
     
    7796    static int const ALLGROUP_END = DRAWGROUP_END;
    7897
     98    /* The initialisation state */
     99    InitState m_initstate;
     100
    79101#if !LOL_BUILD_RELEASE
    80102    enum
     
    103125
    104126private:
    105     Entity *m_gamenext, *m_drawnext, *m_autonext;
    106127    int m_ref, m_autorelease, m_destroy;
    107128};
Note: See TracChangeset for help on using the changeset viewer.