Re: Should I use RMI?

Discussion in 'Java' started by Linus Nikander, Jun 27, 2003.

  1. Not an answer to you question but a piece of advice:

    If you keep object instatiation on the server you'll be in control of the
    game rules because you'll be able to implement checks at the server that
    decides if an action is legal or not. If you allow the clients to instatiate
    their own objects then any reasonably competent programmer could make their
    own client which doesn't abide by the rules you originally intended and thus
    cheat...

    I.e if you wan't to make a more secure game then client objects are out of
    the question. If RMI is the right man for the job i'll leave for someone
    else to answer.

    //Linus



    "Fernando" <> wrote in message
    news:...
    > I am trying my hand at writing a turn-based network game application.
    >
    > Its a simple app with a TCP connection between two machines, one
    > acting as a server the other as client, sending each palyers move
    > across to each other.
    >
    > My question is whether i am right in thinking that using RMI would eba
    > godd way to achieve this?
    >
    > Each participant has individual objects that they control, but which
    > are acted on by other players, my idea is to have both players having
    > remote access to each other objects thus being able to operate on
    > them.
    >
    > Is this a wise way to go about it? Is there another way?
    >
    > Is it easier (for my purposes) to just have each player instantiate
    > thier own local objects and then communicate thier actions to each
    > other via the TCP connection and then updating their own respective
    > local objects?
    >
    > Thanks
    >
    > Fernando
    >
     
    Linus Nikander, Jun 27, 2003
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Anu Raj Pradhan

    Re: Should I use RMI?

    Anu Raj Pradhan, Jun 27, 2003, in forum: Java
    Replies:
    0
    Views:
    856
    Anu Raj Pradhan
    Jun 27, 2003
  2. Buu Nguyen

    RMI, JINI or RMI/IIOP

    Buu Nguyen, Aug 25, 2004, in forum: Java
    Replies:
    1
    Views:
    567
    Sudsy
    Aug 25, 2004
  3. JScoobyCed

    RMI Vs RMI over IIOP

    JScoobyCed, Jan 28, 2005, in forum: Java
    Replies:
    1
    Views:
    743
    Dag Sunde
    Jan 28, 2005
  4. Jan Schulze
    Replies:
    1
    Views:
    571
    Esmond Pitt
    Mar 26, 2005
  5. ~~~ .NET Ed ~~~

    How should control images should be handled?

    ~~~ .NET Ed ~~~, Oct 31, 2004, in forum: ASP .Net Building Controls
    Replies:
    1
    Views:
    242
    John Saunders
    Nov 3, 2004
Loading...

Share This Page