Author Topic: Class diagram for ding_t  (Read 2048 times)

0 Members and 1 Guest are viewing this topic.

Offline isidoro

Class diagram for ding_t
« on: March 04, 2012, 10:55:59 PM »
This is a class diagram for ding_t.  Although it is intended for software engineers/coders, it can more o less be understood by everyone.

One of the things I learned doing it is that for ST, a runway is a track...   :D

Another question for the German people around here that also wondered while doing it: does Claudia Schiffer mean in English Claudia The Sailorette?


And a link with a .pdf...  But I would try to print it in A3 at least...  ;)
http://simutrans-germany.com/files/upload/dings.pdf.zip


Offline Combuijs

  • Web Team
  • Devotee
  • *
  • Posts: 1387
  • Total likes: 22
  • Helpful: 53
  • Maintainer of maps.simutrans.com
    • Combuijs
  • Languages: EN, NL
Re: Class diagram for ding_t
« Reply #1 on: March 04, 2012, 11:48:12 PM »
Quote
Another question for the German people around here that also wondered while doing it: does Claudia Schiffer mean in English Claudia The Sailorette?

I'm not German, but Schiffer means someone who steers a ship, e.g. a captain, bargeman or (in sound most close) skipper.
Bob Marley: No woman, no cry

Programmer: No user, no bugs



Offline Ashley

Re: Class diagram for ding_t
« Reply #2 on: March 05, 2012, 12:07:20 AM »
Very useful :) How about one for the GUI classes?
Use Firefox? Interested in IPv6? Try SixOrNot the IPv6 status indicator for Firefox.
Why not try playing Simutrans online? See the Game Servers board for details.

Offline prissi

  • Developer
  • Administrator
  • *
  • Posts: 8823
  • Total likes: 323
  • Helpful: 229
  • Languages: De,EN,JP
Re: Class diagram for ding_t
« Reply #3 on: March 05, 2012, 09:17:33 AM »
Schiene are all stuff, that is reservable ... In old days it was only tram and tracks.

And pumpe_t and senke_t should sync_stepable, while a lietungs should not. Only delivery of power should need constant action, transmission should be passive.

gebaeude_t is sync_steppable.
« Last Edit: March 05, 2012, 09:24:01 AM by prissi »

Offline isidoro

Re: Class diagram for ding_t
« Reply #4 on: March 05, 2012, 01:43:50 PM »
Thanks, Prissi, I will correct the errors once more feedback arrives.
[...]
 And pumpe_t and senke_t should sync_stepable, while a lietungs should not. Only delivery of power should need constant action, transmission should be passive.
 [...]
 

In fact they are, since they inherit from lietung.  I only marked direct inheritance.  One question, though, all factories, attractions and city buildings use gebaude_t?


@Timothy: I agree.  When looking for abstract classes the other place where I found lots of them was in GUI elements.  Besides, Markohs would benefit for such a diagram in his CEGUI port.  Go ahead, I think it is worth the effort...


@Combuijs: my dream!  Sailing the big ocean with Claudia by my side...  Stopping here and there, now this tropical beach, then wherever,...  8)


Offline prissi

  • Developer
  • Administrator
  • *
  • Posts: 8823
  • Total likes: 323
  • Helpful: 229
  • Languages: De,EN,JP
Re: Class diagram for ding_t
« Reply #5 on: March 05, 2012, 01:45:21 PM »
Maybe we shoudl change inheritance. I think nowadays even pumpe_t does not need sync_stepable any more.

Offline Dwachs

  • DevTeam, Coder/patcher
  • Administrator
  • *
  • Posts: 4251
  • Total likes: 177
  • Helpful: 149
  • Languages: EN, DE, AT
Re: Class diagram for ding_t
« Reply #6 on: March 05, 2012, 02:01:48 PM »
Indeed, only senke_t implements the sync_steppable interface, but not pumpe_t.

One question, though, all factories, attractions and city buildings use gebaude_t?
Yes. Each single tile covered by such a building carries a gebaude_t object. The code for factories is however independent of gebaude_t.
Parsley, sage, rosemary, and maggikraut.

Offline Markohs

  • DevTeam, Coder/patcher
  • Devotee
  • *
  • Posts: 1559
  • Total likes: 2
  • Helpful: 86
  • Languages: EN,ES,CAT
Re: Class diagram for ding_t
« Reply #7 on: March 05, 2012, 02:03:42 PM »
@Timothy: I agree.  When looking for abstract classes the other place where I found lots of them was in GUI elements.  Besides, Markohs would benefit for such a diagram in his CEGUI port.  Go ahead, I think it is worth the effort...

Yes indee, whould be very useful to me. I already redesigned gui_frame_t to be a gui_frame_templated and action listeners and sender are embedded there, but I think I'll need to re-design them completely soon, because I think I didn't made the correct decisions. I'd like to keep gui_frame_t, but I think it's incompatible with templated windows.

Offline jamespetts

  • Simitrans-Extended project coordinator
  • Devotee
  • *
  • Posts: 15857
  • Total likes: 407
  • Helpful: 177
  • Cake baker
    • Bridgewater-Brunel
  • Languages: EN
Re: Class diagram for ding_t
« Reply #8 on: March 09, 2012, 10:19:59 PM »
Very interesting!
Download Simutrans-Extended.

Want to help with development? See here for things to do for coding, and here for information on how to make graphics/objects.

Follow Simutrans-Extended on Facebook.