Browse Source

Added __all__ declarations to actor, task, fsm

Josh Yelon 19 years ago
parent
commit
0c888dcaad

+ 2 - 0
direct/src/actor/Actor.py

@@ -1,5 +1,7 @@
 """Actor module: contains the Actor class"""
 
+__all__ = ['Actor']
+
 from pandac.PandaModules import *
 from direct.showbase.DirectObject import DirectObject
 from pandac.PandaModules import LODNode

+ 2 - 0
direct/src/actor/DistributedActor.py

@@ -1,5 +1,7 @@
 """DistributedActor module: contains the DistributedActor class"""
 
+__all__ = ['DistributedActor']
+
 from direct.distributed import DistributedNode
 
 import Actor

+ 4 - 0
direct/src/fsm/ClassicFSM.py

@@ -1,3 +1,7 @@
+"""Undocumented Module"""
+
+__all__ = ['ClassicFSM']
+
 """Finite State Machine module: contains the ClassicFSM class.
 
 This module and class exist only for backward compatibility with

+ 4 - 0
direct/src/fsm/FSM.py

@@ -1,3 +1,7 @@
+"""Undocumented Module"""
+
+__all__ = ['FSMException', 'FSM']
+
 """
 The new Finite State Machine module.  This replaces the modules
 previously called FSM.py (now called ClassicFSM.py).

+ 4 - 0
direct/src/fsm/FourState.py

@@ -1,3 +1,7 @@
+"""Undocumented Module"""
+
+__all__ = ['FourState']
+
 
 
 from direct.directnotify import DirectNotifyGlobal

+ 4 - 0
direct/src/fsm/FourStateAI.py

@@ -1,3 +1,7 @@
+"""Undocumented Module"""
+
+__all__ = ['FourStateAI']
+
 
 
 from direct.directnotify import DirectNotifyGlobal

+ 4 - 0
direct/src/fsm/SampleFSM.py

@@ -1,3 +1,7 @@
+"""Undocumented Module"""
+
+__all__ = ['ClassicStyle', 'NewStyle', 'ToonEyes']
+
 import FSM
 from pandac.PandaModules import *
 from direct.task import Task

+ 2 - 1
direct/src/fsm/State.py

@@ -1,6 +1,7 @@
-
 """State module: contains State class"""
 
+__all__ = ['State']
+
 from direct.directnotify.DirectNotifyGlobal import directNotify
 from direct.showbase.DirectObject import DirectObject
 import types

+ 2 - 1
direct/src/fsm/StateData.py

@@ -1,6 +1,7 @@
-
 """StateData module: contains StateData class"""
 
+__all__ = ['StateData']
+
 from direct.directnotify.DirectNotifyGlobal import directNotify
 from direct.showbase.DirectObject import DirectObject
 

+ 2 - 1
direct/src/showbase/EventManager.py

@@ -1,7 +1,8 @@
 
 from MessengerGlobal import *
-from direct.task.TaskManagerGlobal import *
+from direct.task.TaskManagerGlobal import taskMgr
 from direct.directnotify.DirectNotifyGlobal import *
+from direct.task.Task import Task
 
 class EventManager:
 

+ 4 - 0
direct/src/task/Task.py

@@ -1,3 +1,7 @@
+"""Undocumented Module"""
+
+__all__ = ['Task', 'TaskPriorityList', 'TaskManager']
+
 
 # This module may not import pandac.PandaModules, since it is imported
 # by the Toontown Launcher before the complete PandaModules have been

+ 3 - 0
direct/src/task/TaskManagerGlobal.py

@@ -1,4 +1,7 @@
 """TaskManagerGlobal module: contains the global task manager"""
+
+__all__ = ['taskMgr']
+
 import Task
 
 taskMgr = Task.TaskManager()

+ 4 - 0
direct/src/task/TaskTester.py

@@ -1,3 +1,7 @@
+"""Undocumented Module"""
+
+__all__ = []
+
 from direct.task.TaskManagerGlobal import *
 import direct.task.Task
 import random

+ 4 - 0
direct/src/task/Timer.py

@@ -1,3 +1,7 @@
+"""Undocumented Module"""
+
+__all__ = ['Timer']
+
 from pandac.PandaModules import *
 import Task