previous chapter contents page top page next chapter

NoImageCoupon

Inherits from Coupon
encodes empty field list;

Class Description

Class NoImageCoupon is a subclass of Coupon that allows the user to set an object's image to nilObject. Objects of this class work by calling ApplyImage on the coupon's target.

Remember that if the documentation and the software (especially the definition files) disagree, always trust the software.

Programming information

Instantiate: rarely
Subclass: never
Call its methods: never

You might instantiate objects of this class if you wanted to create your own nil-image coupons.

Methods defined by class NoImageCoupon

Class NoImageCoupon defines the following methods:

Method Description
ApplyCoupon Overridden to call ApplyImage (nilObject) on coupon's target.

Fields defined by class NoImageCoupon

Class NoImageCoupon defines no fields.

Method Descriptions

ApplyCoupon

overrides ApplyCoupon

Call: rarely
Override: sometimes

Magic Cap calls ApplyCoupon when the user drops a coupon into a viewable object. ApplyCoupon should perform the action represented by the coupon. NoImageCoupon_ApplyCoupon sets the target's image to nil by calling ApplyImage(nilObject).