Ignore:
Timestamp:
02/03/10 13:21:45 (10 years ago)
Author:
maximinus_parpg
Message:

More clean up of the code.
Finshed first pass.
So should be at least stands compliant.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/game/scripts/objects/__init__.py

    r342 r477  
    1515#   You should have received a copy of the GNU General Public License 
    1616#   along with PARPG.  If not, see <http://www.gnu.org/licenses/>. 
     17 
    1718import containers, doors 
    1819import actors 
     
    2324def getAllObjects (): 
    2425    """Returns a dictionary with the names of the concrete game object classes 
    25     mapped to the classes themselves""" 
     26       mapped to the classes themselves""" 
    2627    result = {} 
    2728    for module in object_modules: 
    2829        for class_name in module.__all__: 
    2930            result[class_name] = getattr (module,class_name) 
    30  
    3131    return result 
    3232 
    3333def createObject(info, extra = {}): 
    3434    """Called when we need to get an actual object. 
    35     @type info: dict 
    36     @param info: stores information about the object we want to create 
    37     @type extra: dict 
    38     @param extra: stores additionally required attributes, like agent layer, engine etc. 
    39     @return: the object""" 
     35       @type info: dict 
     36       @param info: stores information about the object we want to create 
     37       @type extra: dict 
     38       @param extra: stores additionally required attributes 
     39       @return: the object""" 
    4040    # First, we try to get the type and ID, which every game_obj needs. 
    4141    try: 
Note: See TracChangeset for help on using the changeset viewer.