Fixed up some event constructors that didn't have zero-arg forms.

git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4157 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Ray Greenwell
2006-05-30 21:08:39 +00:00
parent 3a7fe70124
commit a3dfc741c6
6 changed files with 15 additions and 10 deletions
@@ -30,12 +30,14 @@ public class ElementUpdatedEvent extends NamedEvent
* @param index the index in the array of the updated element.
*/
public function ElementUpdatedEvent (
targetOid :int, name :String, value :Object, oldValue :Object,
index :int)
targetOid :int = 0, name :String = null, value :Object = null,
oldValue :Object = null, index :int = 0)
{
super(targetOid, name);
_value = value;
_oldValue = oldValue;
if (oldValue != null) {
_oldValue = oldValue;
}
_index = index;
}
@@ -48,7 +48,8 @@ public class InvocationNotificationEvent extends DEvent
* only values of valid distributed object types.
*/
public function InvocationNotificationEvent (
targetOid :int, receiverId :int, methodId :int, args :Array)
targetOid :int = 0, receiverId :int = 0, methodId :int = 0,
args :Array = null)
{
super(targetOid);
_receiverId = receiverId;
@@ -45,7 +45,8 @@ public class InvocationRequestEvent extends DEvent
* only values of valid distributed object types.
*/
public function InvocationRequestEvent (
targetOid :int, invCode :int, methodId :int, args :Array)
targetOid :int = 0, invCode :int = 0, methodId :int = 0,
args :Array = null)
{
super(targetOid);
_invCode = invCode;
@@ -45,8 +45,8 @@ public class InvocationResponseEvent extends DEvent
* only values of valid distributed object types.
*/
public function InvocationResponseEvent (
targetOid :int = 0, requestId :int = 0, methodId :int = 0,
args :Array = null)
targetOid :int = 0, requestId :int = 0, methodId :int = 0,
args :Array = null)
{
super(targetOid);
_requestId = requestId;
@@ -25,7 +25,8 @@ public class ObjectAddedEvent extends NamedEvent
* the specified oid.
* @param oid the oid to add to the oid list attribute.
*/
public function ObjectAddedEvent (targetOid :int, name :String, oid :int)
public function ObjectAddedEvent (
targetOid :int = 0, name :String = null, oid :int = 0)
{
super(targetOid, name);
_oid = oid;
@@ -54,7 +55,7 @@ public class ObjectAddedEvent extends NamedEvent
protected override function notifyListener (listener :Object) :void
{
if (listener is OidListListener) {
listener.objectAdded(this);
(listener as OidListListener).objectAdded(this);
}
}
@@ -38,7 +38,7 @@ public class ObjectDestroyedEvent extends DEvent
*
* @param targetOid the object id of the object that will be destroyed.
*/
public function ObjectDestroyedEvent (targetOid :int)
public function ObjectDestroyedEvent (targetOid :int = 0)
{
super(targetOid);
}