Provide the AbstractMediaManager with a reference to the panel it's

working with rather than just the RegionManager.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3347 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Michael Bayne
2005-02-14 03:00:58 +00:00
parent 113ca65f7a
commit 459d677a2f
3 changed files with 21 additions and 9 deletions
@@ -1,5 +1,5 @@
//
// $Id: AbstractMediaManager.java,v 1.14 2004/11/11 23:52:43 mdb Exp $
// $Id$
//
// Narya library - tools for developing networked games
// Copyright (C) 2002-2004 Three Rings Design, Inc., All Rights Reserved
@@ -41,9 +41,10 @@ public abstract class AbstractMediaManager
/**
* Default constructor.
*/
public AbstractMediaManager (RegionManager remgr)
public AbstractMediaManager (MediaPanel panel)
{
_remgr = remgr;
_panel = panel;
_remgr = panel.getRegionManager();
}
/**
@@ -54,6 +55,14 @@ public abstract class AbstractMediaManager
return _remgr;
}
/**
* Returns the media panel with which we are coordinating.
*/
public MediaPanel getMediaPanel ()
{
return _panel;
}
/**
* Must be called every frame so that the media can be properly
* updated.
@@ -278,6 +287,9 @@ public abstract class AbstractMediaManager
_notify.clear();
}
/** The media panel we're working with. */
protected MediaPanel _panel;
/** The region manager. */
protected RegionManager _remgr;