cut scenes

This commit is contained in:
Dave Schuyler 2003-10-10 06:03:39 +00:00
parent 67ac00ecb8
commit fb49afdfc4
3 changed files with 19 additions and 2 deletions

View File

@ -1,5 +1,6 @@
"""EntityCreator module: contains the EntityCreator class"""
import CutScene
import EntityCreatorBase
import BasicEntities
import DirectNotifyGlobal
@ -14,13 +15,16 @@ def nothing(*args):
return None
class EntityCreator(EntityCreatorBase.EntityCreatorBase):
"""This class is responsible for creating instances of Entities on the
client. It can be subclassed to handle more Entity types."""
"""
This class is responsible for creating instances of Entities on the
client. It can be subclassed to handle more Entity types.
"""
def __init__(self, level):
EntityCreatorBase.EntityCreatorBase.__init__(self, level)
self.level = level
self.privRegisterTypes({
'cutScene': CutScene.CutScene,
'editMgr': EditMgr.EditMgr,
'levelMgr': LevelMgr.LevelMgr,
'logicGate': nothing,

View File

@ -42,6 +42,7 @@ class EntityCreatorAI(EntityCreatorBase.EntityCreatorBase):
cLE = createLocalEntity
self.privRegisterTypes({
'cutScene': nothing,
'editMgr': Functor(cLE, EditMgr.EditMgr),
'levelMgr': Functor(cLE, LevelMgrAI.LevelMgrAI),
'logicGate': Functor(cLE, LogicGateAI.LogicGateAI),

View File

@ -80,6 +80,18 @@ class Zone(Entity, NodepathAttribs):
('visibility', []),
)
class CutScene(Entity):
type = 'cutScene'
output = 'bool'
attribs = (
('pos', Point3(0,0,0), 'pos'),
('hpr', Vec3(0,0,0), 'hpr'),
('startStop', 0),
('effect', 'irisInOut'),
('motion', 'foo1'),
('duration', 5.0),
)
class BarrelBase(Nodepath):
delAttribs = (
'hpr',