Currently Online

Latest Posts

Topic: Widelands namespace incomplete?

Kiscsirke
Avatar
Topic Opener
Joined: 2009-12-16, 12:40
Posts: 42
Ranking
Pry about Widelands
Location: Budapest, Hungary
Posted at: 2013-03-03, 18:10

Is there any reason while some parts of the code (for example, the DirAnimations class, but I think I've seen others) are outside the Widelands namespace? Or is that just something noone took time to complete?


Top Quote
ixprefect

Joined: 2009-02-27, 13:28
Posts: 367
Ranking
Tribe Member
Posted at: 2013-03-03, 20:41

Basically everything pertaining purely to the game logic is in the Widelands namespace. The further away you go from the game logic, the more code you meet will be outside of this namespace. The boundaries are not that well-defined, but this is the general rule.


Top Quote
SirVer

Joined: 2009-02-19, 14:18
Posts: 1445
Ranking
One Elder of Players
Location: Germany - Munich
Posted at: 2013-03-09, 19:42

We never established a formal rule what should go into a namespace and what shouldn't. Namespaces would have been a good idea in general I think - but it is tedious to add them in after the fact. If you write new code, feel free to introduce namespaces as see fit.


Top Quote