Fuck im getting tired of MVC.
Let's say I have an array of integers representing a game world's data:
x and y values for drawing and item id(8)
0,0,32,32,8 x100
What's the correct way of passing those value from the Model to the Draw function in my View? Should I just create the same array inside my View?
>>54860216
The numbers you posted, are those just a sample of the values you want to pass into your method?
>>54860261
0,0,200,200,0,200,0,200,200,0,400,0,200,200,0,0,200..... are read from a file and stored in an array inside the model.
Now I need that array in my View for the g.drawRect methods and for defining Shapes that will be have mouselisteners attached to them in the controller.
The simplest way to do it would be to just type model.array but it's against everything in MVC
>>54860216
My friend, have you tried googling it?
>>54860375
Yes
Niggers.
More niggers.
Even more niggers.
just make a method to get the a copy of the current world state
Still more niggers.
>>54860216
Send Model data to View, use that data in the View.
So many niggers.
Niggers, niggers everywhere.