Ignore:
Timestamp:
Apr 26, 2012, 8:20:48 PM (9 years ago)
Author:
sam
Message:

core: prefix some member variables with m_ for clarity.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/mrpigeon/blueenemy.cpp

    r1211 r1300  
    2929    enemy_casualblueattack = Tiler::Register("mrpigeon/gfx/enemy_CasualBLUE_walkAttack.png", ivec2(16,24), ivec2(0)); /* 6 frames */
    3030
    31     position = vec3(512, 81, 0);
    32     velocity = vec3(-0.15f, 0, 0);
     31    m_position = vec3(512, 81, 0);
     32    m_velocity = vec3(-0.15f, 0, 0);
    3333}
    3434
     
    4141    enemytime = fmod(deltams + enemytime, 700.0f);;
    4242
    43     position += velocity * deltams;
     43    m_position += m_velocity * deltams;
    4444}
    4545
     
    4949
    5050    /* + 48 because of vertical flip */
    51     Scene::GetDefault()->AddTile(position.x > 255 ? enemy_casualblue : enemy_casualblueattack, (int)(enemytime * 6 / 700.0f), position + vec3(48.0f, 0, 0), 0, vec2(-3.0f, 3.0f));
     51    Scene::GetDefault()->AddTile(m_position.x > 255 ? enemy_casualblue : enemy_casualblueattack, (int)(enemytime * 6 / 700.0f), m_position + vec3(48.0f, 0, 0), 0, vec2(-3.0f, 3.0f));
    5252}
    5353
Note: See TracChangeset for help on using the changeset viewer.