[lunedì 28 gennaio 2013] [23:01:38] and connect with theodor and tomasz [lunedì 28 gennaio 2013] [23:01:47] ok [lunedì 28 gennaio 2013] [23:01:53] I will write up the chat. [lunedì 28 gennaio 2013] [23:02:09] ok [lunedì 28 gennaio 2013] [23:02:11] and also review. :) [lunedì 28 gennaio 2013] [23:02:17] then see you later tehn [lunedì 28 gennaio 2013] [23:02:21] i will mail them [lunedì 28 gennaio 2013] [23:02:29] see you later. [lunedì 28 gennaio 2013] [23:02:36] night [lunedì 28 gennaio 2013] [23:02:44] good night. and a good week. :) [10:58] --> Sei entrato nel canale #freelords (~patton@adsl-ull-152-89.46-151.net24.it). [10:58] *** Modalità del canale: colori non permessi, nessun messaggio dall'esterno, protezione del titolo [10:58] *** Questo canale è stato creato il 19/12/2009 11:52. [10:58] hi [10:58] hello [10:58] let's wait for tomasz :) [10:58] ok [11:03] --> Tomasz è entrato nel canale (~Tomasz@evb228.neoplus.adsl.tpnet.pl). [11:03] hello [11:03] hi [11:03] hi [11:04] so let's go on with the tasks [11:04] i have to tell first of all that im very sick this weeekend so i cant stay to long [11:04] ok [11:05] so what should we discuss today? [11:05] 133.4? [11:05] task 178 is like 90% done but i wasnt able to finish it [11:05] so i will send it in 2 days max [11:06] ok do not worry [11:06] ok let's start with 133.4 [11:07] let me see the kanaban [11:09] ok [11:10] so now we should discuss about the "real drawing [11:11] well basically we should contine where we stopped last chat [11:11] right now we have the converter for cohordinates [11:12] but we must prepare data to be converted [11:12] and for drawing calculate points starting from center point [11:12] ping? [11:12] pong [11:12] pong [11:12] basically we must take care of : [11:13] tile drawing (given the tile center point) [11:13] transitions drawing after all tiles are drawn [11:14] so any ideas? [11:14] Ulf, suggested that we first do the other layers [11:15] since tiles are a bit more involved (smooth transitions) [11:15] which are? [11:15] for now, buildings and armies, I think [11:15] ah ok [11:16] yes we can start with buildings [11:17] we'll follow a layered approach like in the old code right? [11:17] i suppose so [11:17] bt basically i do not know if swing permits that [11:17] old code was SWT [11:19] I think we can do it in Swing, it would be too limiting (as a framework) if it didn't allow that [11:19] well honestly i am not so good in handling graphics code [11:20] anyway we can have a look at the old code just to see if we can reimplement it in swing [11:21] well, except for the tiles, which I don't know how the smooth transitions will be done, the rest is easy [11:21] yes transitions are hard enough [11:22] so what you prefer to do? [11:22] we make 1-2 tasks to display layers? [11:22] we could do that [11:22] i would propose to make also a demo for that just to see how it is going to work [11:23] well, making a demo is part of Task 133 :P [11:23] so, we'll have to do it anyway [11:24] yes but i would do it before having the map viewer finished [11:24] I would start with cities [11:24] so to be clear of what we need to do [11:24] ok [11:25] 1) import the old city graphics into the new data directory [11:25] 2) create a layer for the cities that uses the cohordinates helper [11:26] 3) make a little demo that displays the cities on an empty map [11:26] the map can be very simple [11:26] but at least it should have 2 cities [11:27] right? [11:27] ok [11:27] k [11:27] ok please write a task :) [11:27] about this [11:28] we start with cities [11:29] theodor, want me to write it or you? [11:29] you can write it, if you want to [11:32] created the task but check inside it [11:32] im mess today [11:34] can we extend it a bit ore? [11:34] well, we probably should [11:34] regarding 1, there's a lot of code for animation in the old code [11:35] well right now do we want anymation? [11:35] i would add it later [11:35] no [11:35] we just want to display things in a layered mode [11:37] since we are not doing the background layer now, there's not much to import [11:37] well the city images i meant [11:38] oh ok [11:38] right now we do not have them in new data folder [11:39] hmm [11:39] about that I have a question [11:39] yes [11:40] in the old code, I see that there are images for a fort, marketplace etc [11:40] well cities can have a level [11:40] from 0 to 4 if i do not go wong [11:40] oh, ok [11:40] it depends on the fortification level [11:41] will this be implemented later? [11:41] sure [11:42] ok [11:42] for now we just take an image and displays it [11:42] which image to show will be calculated later [11:43] basically you just need to get the correct image name [11:44] k [11:44] ok then please finish the task with latest information [11:46] I wanted to add, one more thing [11:46] yes ? [11:46] Part of the code that I submitted last week [11:47] was to load the image, and encapsulate it in a Drawable (that's an interface) [11:47] yes i saw it since i could not find time to review [11:48] the idea is that after we get an instance of the map, we load each image, and depending of what type of drawable it each, it is dispatched to the appropriate drawable [11:48] yes [11:49] I believe that it would be fitting, if drawables also held where the image should be drawn [11:49] you mean the map position? [11:49] or pixel positon? [11:50] I was thinking pixels [11:50] so you mean we already translate the cohors? [11:50] chords [11:51] then we can pass a collection of these drawables to each layer, and then each layer just iterates through then and draws [11:51] so we translate cohords when we create drawables? [11:51] well, yes [11:51] or not [11:52] not on creation time [11:52] there could be a method to add, the coords [11:52] wel basically we will never have too many drawables (at least for map objects) so i believe it can work [11:53] and, in the future if we want to do caching, we won't have to load them again , we just change the coords in the drawabel [11:53] yes [11:53] but for tiles we can have a problema (the ache will be too big) [11:54] well, since most of the tiles are the same, we could have a list of coords in each drawable [11:55] yes that could work [11:55] anyway, should add the coords to the drawables, without any caching for now, and implement the layers in this fashion? [11:56] yes we can do that [11:57] ok let's modify ths task to add cohordinates [11:57] ok so to refine the new task a liitle [11:58] oh, one more thing, wouldn't it make sense that layers don't use CoordinatesConverter? [11:59] i mean shouldn't there be a "layer handler" that does that? [11:59] well the converted should be used from the object that creates the drawable [11:59] converted [11:59] converter [11:59] yes [11:59] ok [11:59] and drawable should contain already converted cohords [12:01] so to sum up: [12:01] 1) Add coordinates to the Drawable interface [12:01] 2) Import from the old code the city graphics [12:01] 3) Create a layer for cities that can take a collection of drawables and draw them [12:01] 4) make a little demo that displays a few cities on an empty map [12:01] something like this? [12:01] yes ok [12:01] just modify the task [12:02] done [12:02] ok then [12:02] i would stop here [12:03] ok [12:03] since tomasz is working on task 178 you can take task 187 [12:03] ok [12:03] i will review the committed code [12:04] there's just one thing [12:04] and we will chat again some day next week [12:04] yes? [12:04] I'll be able to work on it after Wednesday, since I'll be sitting my last exam on that day [12:05] ok [12:05] do not worry [12:05] we take it easy :) [12:05] other than that, I'm looking forward to doing this task, I find it exciting :P [12:05] ok [12:06] sorry for me beeing just watcher today [12:06] i will be busy in reviewing task 177 and 178 (when finished) [12:06] but i need to cure myself :) [12:06] do not worry tomasz [12:06] ok then see you next week [12:06] c ya [12:06] <-- Tomasz ha lasciato questo server. [12:06] we can chat pheraps on thursday or friday [12:06] bye, have a nice day [12:07] bu i will mail it [12:07] ok [12:07] ok i will send the chat lof in ML [12:07] see you next week