inherits from Coupon encodes empty field list
Class BorderCoupon is a subclass of Coupon that allows the user to change the border of an object. Objects of this class work by calling SetBorder on the coupon's target.
Remember that if the documentation and the software (especially the definition files) disagree, always trust the software.
Instantiate: rarely Subclass: rarely Call its methods: never
You might instantiate objects of this class if you wanted to create your own border coupons, and you might create subclasses if you wanted to create a coupon for a specialized kind of border class.
Class BorderCoupon defines the following methods:
Method | Description |
---|---|
ApplyCoupon |
Overridden to call SetBorder on coupon's target. |
Draw | Overridden to show border in coupon instead of text. |
Class BorderCoupon defines no fields.
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. BorderCoupon_ApplyCoupon sets the target's border by calling SetBorder.
overrides Draw Call: rarely Override: sometimes
Magic Cap calls Draw to draw the coupon on the screen. BorderCoupon_Draw draws the coupon with an image that indicates what the target's border will look like when the coupon is applied.
See Viewable_Draw for more information.