Re: [Alephmodular-devel] High Level Modules
Status: Pre-Alpha
Brought to you by:
brefin
From: Chris P. <sf...@ma...> - 2002-12-30 02:36:25
|
On Sunday, December 29, 2002, at 07:39 PM, Br'fin wrote: > What sort of independent pieces would people like to see? The first target, in my opinion, should be the definitions. I've got a=20= list of them somewhere... got it. Bottom of the message, it's fairly=20 long. The most important ones to modularize are the ones in: - device.cpp - fades.cpp - game_window.cpp - item_definitions.cpp - media_definitions.cpp - scenery_definitions.cpp - sound_definitions.cpp Interestingly enough, the number comes out to 7. But more importantly,=20= modularizing these would mimic the functionality of MML in A1. These=20 are smaller things, and should be fairly easy to split off, while=20 other, hairier things (rendering, networking) might take some more time=20= and effort for less of an immediate return. Another thing that should be modularized quickly, and hopefully almost=20= as easily, would be the network game types. I'm not entirely sure how=20 to go about it myself =96 we'd need to split apart the switch-cases that=20= are in most of the network_games.cpp functions in such a way that it=20 handled a variable number of game types. (game_data->parameters and player_data->netgame_parameters should be=20 set to a higher size too) [On your second message] > ENUMS Well, in a lot of instances, we would want to allow modules to define=20 values past those that were originally in the enum. A typedef would=20 prevent anyone from adding _media_milk on to the media types enum, so=20 it we should probably keep things as they are. On your other points, I agree. Typecasts are bad, new is good, obsolete=20= is bad. -Sfiera ---------- device.cpp =96 Control panels fades.cpp =96 Fade effects game_window.cpp =96 Interface weapon definitions lightsource.cpp =96 Light definitions. Probably overridden by Maps. player.cpp =96 Player shape definitions, Damage response definitions vbl.cpp =96 Special flag definitions? For replays, I think effect_definitions.h =96 Effect definitions. Overridden by Physics. extensions.h =96 Definition defintions...? item_definitions.h =96 Item definitions key_definitions.h =96 Standard key definitions (x3) media_definitions.h =96 Media type definitions monster_definitions.h =96 Monster definitions. Overridden by Physics. physics_models.h =96 Running/walking definitions. Overridden by Physics. platform_definitions.h =96 Platform type definitions projectile_definitions.h =96 Projectile definitions. Overridden by=20 Physics. scenery_definitions.h =96 Scenery definitions shape_definitions.h =96 Something important? song_definitions.h =96 Outdated M1 music stuff? sound_definitions.h =96 Sound behavior definitions, Ambient sound=20 definitions, Random sound definitions, Sound definitions weapon_definitions.h =96 Shell casing definitions, Weapon Definitions.=20= WDs overridden by physics= |