Jump to content

Laurens

Members
  • Posts

    564
  • Joined

  • Last visited

Posts posted by Laurens

  1. Well, there is also ForEachEntityDo that iterates over all objects. You can use the same callback (well, maybe change its name to ForEachEntityDoCallback to avoid confusion) and the same calling code except change this line:

     

    ForEachEntityInAABBDo(aabb, reinterpret_cast<byte*>(ForEachEntityInAABBDoCallback), reinterpret_cast<byte*>(entities));
    

     

    in this line:

     

    ForEachEntityDo(reinterpret_cast<byte*>(ForEachEntityDoCallback), reinterpret_cast<byte*>(entities));
    

     

    and then simply iterate over entities and do EntityDistance(source, destination).

     

    Cheers!

  2. I do this in my tower defense game to find towers within range of each other so they can link.

     

    First create a callback function:

     

    void _stdcall ForEachEntityInAABBDoCallback(TEntity entity, BP extra)
    {
    reinterpret_cast<vector<TEntity>*>(extra)->push_back(entity);
    }
    

     

    Note that extra contains a vector of TEntity's and the entity that is passed in the callback function is pushed back into this vector.

     

    Then, somewhere in your calling code:

     

           TVec3 p = EntityPosition(node->GetEntity());
    
    TVec6 aabb;
    
    aabb.X0 = p.X - node->GetRadius() / 2;
    aabb.Y0 = 0;
    aabb.Z0 = p.Z - node->GetRadius() / 2;
    
    aabb.X1 = p.X + node->GetRadius() / 2;
    aabb.Y1 = 0;
    aabb.Z1 = p.Z + node->GetRadius() / 2;
    
    vector<TEntity> *entities = new vector<TEntity>();
    ForEachEntityInAABBDo(aabb, reinterpret_cast<byte*>(ForEachEntityInAABBDoCallback), reinterpret_cast<byte*>(entities));
    

     

    entities should now contain all the entities that are in the AABB.

     

    Cheers!

  3. What GMail does is plain IMAP and nothing special, and you most certainly don't need to use it. I would be highly surprised if your hoster wouldn't be able to set you up with an IMAP account. It's just a matter of flipping a switch in a control panel.

  4. IMAP differs from POP in that with IMAP you work directly on the mail server instead of locally on the client as is the case with POP. As a result, all of your folders and e-mail along with its status (read/unread/replied/forwarded) is always synchronized across all devices you access your mailbox from. You can still download your e-mail and work offline but client devices are considered temporary caches and everything is synchronized once you are back online.

     

    It's probably what you mean by "Outlook" except that Microsoft added all sorts of other features such as a calendar and task list.

     

    http://en.wikipedia.org/wiki/Internet_Message_Access_Protocol

  5. In Lord of the Rings Online there is no collision between players. You can just walk straight through each other. When you attack another player I assume the server simply checks if you were in range of the other player and counts it as a hit, even though an actual sword swing might not have physically hit the other player at all.

     

    Wouldn't know about other MMO's.

  6. Up to this point all updates have been free except from 2.27 to 2.3 which was a pretty major update. Leadwerks 2.4 will be another free update but I can say with pretty certainty that 3.0 will be another paid update.

     

    I can't say about the upcoming updates but at the 2.3 update there was no difference in purchasing the entire engine or just the upgrade. Previous owners had paid 150 dollars for 2.28 and the upgrade was 50 dollars. If you want to purchase 2.3 now it is 200 dollars and the same will most likely be true for 3.0 although I cannot be sure of that.

     

    Cheers!

  7. 1) You can see the sky also

     

    Except that the game is indoors :)

     

    2) You can see aliens from further away (in top down view you only see them when they are very near since your screen edges block the distance view)

     

    I'd say working as intended.

     

     

    3) It feels more immersive and real (top down is quite unusual view, since you never see yourself from outside)

     

    Kind of agree here although I feel the top-down view adds a "casual" touch to the game which I like.

  8. I played it for a bit and it is not just some run off the mill dumb shooter. It does involve some serious teamwork on higher difficulty settings and is quite exciting with some friends. The FPS hack Lumooja posted portrays it pretty badly because the top-down camera view adds something I think, although I have to agree it's pretty annoying that W is north all the time. It doesn't feel right.

×
×
  • Create New...