Get rid of LuaBaseImmovable::get_size
Bug #1544864 reported by
GunChleoc
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
widelands |
Fix Released
|
Low
|
Unassigned |
Bug Description
Once we have added LuaBaseImmovabl
This needs to be done before Build19, because it will break backwards compatibility.
Related branches
lp:~widelands-dev/widelands/bug-1544864
- SirVer: Approve
-
Diff: 289 lines (+78/-73)6 files modifieddata/tribes/scripting/help/building_help.lua (+3/-3)
src/scripting/lua_map.cc (+56/-53)
src/scripting/lua_map.h (+1/-2)
test/maps/lua_testsuite.wmf/scripting/baseimmovables.lua (+5/-5)
test/maps/lua_testsuite.wmf/scripting/constructionsite.lua (+4/-2)
test/maps/lua_testsuite.wmf/scripting/immovables_descriptions.lua (+9/-8)
summary: |
- Get rid of LuaBaseImmovable + Get rid of LuaBaseImmovable::get_size |
Changed in widelands: | |
importance: | High → Low |
status: | In Progress → Fix Committed |
assignee: | GunChleoc (gunchleoc) → nobody |
Changed in widelands: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Why do you want to get rid of it? duplicating the code in each subclass is not really better.
Also, I do not think it would break backwards compatibility, because no object of BaseImmovable could ever be instantiated (I think), it is a pure base class - or am I wrong about that?