The examples I used were purely examples, the names were descriptive of what they are, not what they model...
I have "solved" it by making my own Array object and passing that around... with the suggested accessor and mutator methods....
I know it's not the perfect way... but thanks for all of your ideas.
I guess I should have realised that Java takes care of all the "messy" stuff...
I am making tetris in C++ with OpenGL/GLUT. The array contains the locations of each of the blocks of a piece.
While I am sure there are some much more efficient ways of coding this, I am doing it an OOD/OOP way. I am not going to claim that I am doing in a completely correct way. However, I have so far got all seven shapes falling down the screen and a given rate, you can "hard drop" a shape, and you can move it left and right until it hits the sides.
I have yet to get the following working: -
Rotation
Collision (everything from hitting the bottom to hitting other pieces to line completion)
Scoring
Display of next shape
However, I see little difficulty in completing these. I guess this is for a different forum....
I am doing this to prove to myself that I can.
I have made previous game-like OpenGL programs, but they are not complete.
Example of such a program.
[Edited by - SulphurTenM on November 23, 2007 7:53:25 PM]
GLUT Setup: -Dev C++ 4.9.9.2GPU: GeForce 7600GT (256mb)CPU: Core 2 Due 1.86RAM: 1Gig