marco cestini

Greenhorn
+ Follow
since Nov 05, 2009
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by marco cestini

Hello,
I'm re-writing a game and basically I have 3 big classes: the net, the players and the physic.
they have to exchange some message, and the response may vary depending if and how the message is valid and has been processed.

My actual implementation is a set of Action object for Player, Physic and Net; they have a RUN method that take as input Player or Physic or Net(we can say it's container) and modify it: for example I read from the net an Action, this Action has a run method that want in input the Net, modify something (if necessary), then create an Action that take as input in his run a Payer obj and it will be send to Player... again run, a new Action for physic and so on...

A friend of mine suggest a that the Action class only have to contain the parameter and a flag to the function to use, so the "run" code is directly in the Player, Physic and Net class.......

well the idea are more complicated, but hope you get the point.

What you think this is the best way? And why? do you suggest another way?
pleeese help and contribute, i'll love you very much
14 years ago
hello,
I want make a model, then the program has to fill it with the value and print it. that model has image, text and table.
here's my idea
1) i was thinking use a XLS as model to fill, but i have to use external libraries and i don't know how automatically print it (the class Desktop isn't supperted on kubuntu?!?!)
good: easy to save model
bad: use of proprietary software
2) draw the model to a panel and then print it (awt.print accept Graphics)
good: easy to print and graphical debug
bad: if the panel have scrol pane it won't print hidden components(i'm not sure about that!)

Any ideas?

p.s. sorry for my bad english
15 years ago