[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Airsim update, C++ socket class?



Well, this is sweet.  I fixed the ostrstream bug after a suggestion from
a Usenet post.  Turns out that ostrstream is NOT the same as
ostringstream and you need to do some things differently.

I just released 0.0.2, and you can get it here: 
http://cvs.seul.org/~yoderm/  It now has reasonably accurate sample
data, and I'm having fun playing with it.

0.1.0 will be the first release to allow client connections, and shortly
thereafter it should be mildly playable.

So that leads me to ask if anyone knows of a good socket class in C++. 
I could use the C API, but almost everything else is pretty heavy C++,
so I might as well be consistent.

For whever wants to know more about the game, here's the description
from the README file:
------------------------
Airsim (still unnamed - this isn't official!) is a cutthroat business
simulator focusing on the airline industry.  It is intended to be
somewhat
in the spirit of the old Railroad Tycoon games, but with planes.  The
player
has to find the most efficient way to move the most people where they
want
to go.  Of course, things get in your way -- like lack of money, natural
disasters, and strikes.

There will be heavy exposure to the financial side of the industry. 
Airlines
will be able to raise money by issuing stock and/or bonds, each of which
has advantages and disadvantages.  Players will be able to buy stock in
competitor airlines, and if someone acquires >50% of the stock of a
competitor,
he or she will have the option of acquiring the airline and merging the
two
companies.

Competition will be fierce.  Residents are picky.  Some people prefer
the
lowest fares, while others want to get from point A to point B as
quickly
as possible.  Some refuse to fly on an airline with a poor safety
record.
You, of course, must please as many people as possible.

Airlines will also compete for limited resources.  In this case, gates
at major airports will probably be the hot items.  Gates are limited,
and
the number of flights you can have depends on how many gates you
control.