|
View:
New views
3 Messages
—
Rating Filter:
Alert me
|
|
|
Using a non int or Integer object collection in Object2DHexagonalGrid together with a Value2DHexaDisplay objecthello all! Currently I am using a Object2DHexagonalGrid to model the world in my simulation. All the information it stores now is an Integer object, and as such, I can easily use a Value2DHexaDisplay, mapping each cell's value to a color making it easy to display. I am however going to need to store more information in each cell, namely objects of a class Cell instead of Integer. This makes it as far as I know impossible for me to use Value2DHexaDisplay the way I'm used to. I come here in hope of getting help in my endeavour :p
Thanks in advance. PS: I have already tried to display my world made of Cells the same way I display my agents, with an Object2DHexaDisplay, implementing Drawable in Cell. This makes the simulation painfully slow.
-- Mário Carneiro ~ http://ni.fe.up.pt/~mario mail / msn: emailoftheyear@... ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Repast-interest mailing list Repast-interest@... https://lists.sourceforge.net/lists/listinfo/repast-interest |
|
|
Re: Using a non int or Integer object collection in Object2DHexagonalGrid together with a Value2DHexaDisplay objectbump? :(
2009/10/30 Mário Carneiro <emailoftheyear@...>
-- Mário Carneiro ~ http://ni.fe.up.pt/~mario mail / msn: emailoftheyear@... ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Repast-interest mailing list Repast-interest@... https://lists.sourceforge.net/lists/listinfo/repast-interest |
|
|
Re: Using a non int or Integer object collection in Object2DHexagonalGrid together with a Value2DHexaDisplay objectYou'll have to an Object*Grid if you want the grid to contain objects like your Cell class. You should see some speed up from if you set the objects to display using setObjectList on the HexaDisplay rather than let the display iterate through the entire grid. I'm not sure if this will make it much faster though -- perhaps just from painfully slow to merely uncomfortable.
Nick On Nov 3, 2009, at 4:46 AM, Mário Carneiro wrote: bump? :( ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Repast-interest mailing list Repast-interest@... https://lists.sourceforge.net/lists/listinfo/repast-interest |
| Free embeddable forum powered by Nabble | Forum Help |