Search:

Type: Posts; User: M.Richard Tober

Search: Search took 0.00 seconds.

  1. Polymorphism, or: How I Learned to Stop Worrying and Love the Bomb

    In my base class <Actor>, I defined


    virtual void Update(Actor &Player);

    ...This caused a vtable meltdown - but without me knowing what was going on, I over-reacted and hacked up a bunch of...
  2. Thank you Elysia :)

    I'm brushing up on virtual functions right now. I thought I knew how to implement the polymorphism I needed to let the Parent class <Actor> to have a virtual void Update(); that would allow a call...
  3. I'm lost in a hellish world of pointers and...

    I'm lost in a hellish world of pointers and references, which I now call "Crouching Tigers and Hidden Dragons" =(

    I'll get back with updates soon.
  4. Sorry! Sure, give me a minute. while...

    Sorry! Sure, give me a minute.


    while (Game.IsOpened())
    {
    if (UpdateClock.GetElapsedTime() > GameLoopTimeLimit) {

    for (vector<Actor*>::iterator it =...
  5. Thank you!

    Thanks KingMir! So it sounds like generally is a better idea to use references than pointers to pass arrays...
    ... but now I have a terrible new issue:

    Nested iterators...? I don't even know how...
  6. Holy moly, when I read your affirmation Elysia, I...

    Holy moly, when I read your affirmation Elysia, I actually sighed in relief. *laugh* I think I'm my own worst critic, but that's probably for the best. Thank you to you and Salem, I'd be up the...
  7. Thank you Salem!

    double TempRandZ = EnemyLowerBounds.z + (static_cast<double>(rand() % (static_cast<int>((EnemyLowerBounds.z - EnemyUpperBounds.z)) * 10)) * 0.1);


    Yes, so sorry about that - the Z coords are...
  8. Long Lines of Code, and Passing a reference to an array Question

    This may not be the best way to write this:

    double TempRandX = EnemyLowerBounds.x + (static_cast<double>(rand() % ((EnemyLowerBounds.x - EnemyUpperBounds.x) * 10)) * 0.1);

    This is the...
Results 1 to 8 of 8