Sign in to follow this  
ratha

Multiple Game Windows using C++,Java&Flash

Recommended Posts

[b]Hi!
I'm working in an online Flash game(Flash is the Front end,
C++ is the middle ware and Java is the back end. It was not developed
from the scratch by me. I'm in a position to maintain the C++ part of it.
I don't know Flash or Java. My Requirement is:

It should be able to open and play the game over multiple browser windows.
What should I change in C++ coding apart from changes in the flash end?
Is the current session maintainable across multiple windows? If not, how to
maintain the same session across multiple browser windows? Session was
created using ISession. The game uses Consumer-Producer algorithm.[/b]

Share this post


Link to post
Share on other sites
[quote name='ratha' timestamp='1313476428' post='4849722']
[b] It should be able to open and play the game over multiple browser windows.
What should I change in C++ coding apart from changes in the flash end?
Is the current session maintainable across multiple windows? If not, how to
maintain the same session across multiple browser windows? Session was
created using ISession. The game uses Consumer-Producer algorithm.[/b]
[/quote]

Your requirements are somewhat loose and hard to understand. For example, there are many libraries that provide an ISession interface to sessions -- which particular library/ISession are you using? Is this an ISession on the client machine, or on the application server machine? Where does the C++ code run -- on the client machine, on a server machine, or both?
Also, what does it mean to "use the session from multiple browser windows"? Are you saying many browser windows should show the same data at the same time, and accept player input from all the browsers at the same time? Or are you saying that different players open different browsers, but share world state (like a typical multiplayer game)?

Share this post


Link to post
Share on other sites
[quote name='hplus0603' timestamp='1313518631' post='4849953']
[quote name='ratha' timestamp='1313476428' post='4849722']
[b] It should be able to open and play the game over multiple browser windows.
What should I change in C++ coding apart from changes in the flash end?
Is the current session maintainable across multiple windows? If not, how to
maintain the same session across multiple browser windows? Session was
created using ISession. The game uses Consumer-Producer algorithm.[/b]
[/quote]
[/quote]

[quote]
Your requirements are somewhat loose and hard to understand. For example, there are many libraries that provide an ISession interface to sessions -- which particular library/ISession are you using?
[/quote]

I don't know which library has been used. But my ISession class is derived from IConnect which in turn derived from virtual public m_object::TObject.

[quote]
Is this an ISession on the client machine, or on the application server machine?
[/quote]

Server machine.

[quote]
Where does the C++ code run -- on the client machine, on a server machine, or both?
[/quote]

Server Machine.

[quote]
Also, what does it mean to "use the session from multiple browser windows"? Are you saying many browser windows should show the same data at the same time, and accept player input from all the browsers at the same time? Or are you saying that different players open different browsers, but share world state (like a typical multiplayer game)?
[/quote]

We have a list of games. With the current architecture,the user is able to play only one game at a time.
If he wants to play a new game while playing another game,
he has to close the current window and click another link to open the game he wants to play.
Instead, we want to open multiple windows of the game simultaneously(either same game or different games not a multi player game though).
This is our requirement. What needs to be done to achieve this? Changes from flash side
(modification to open multiple windows of the game) is enough? Or we need to change the way the session is
maintained.

Share this post


Link to post
Share on other sites
[quote name='ratha' timestamp='1313560276' post='4850159']
I don't know which library has been used. But my ISession class is derived from IConnect which in turn derived from virtual public m_object::TObject.
[/quote]

Sounds like a class that is custom to your C++ server code, then.

It sounds to me as if you don't need to change the Flash at all, necessarily, but you absolutely will have to first understand, and then change, the C++ server code.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this