Quantcast

Improve encapsulation of OvaleFuture.

Author Johnny C. Lam <jlam88@gmail.com>
Author date 2013-03-12 04:47:10
Author local date 2013-03-12 04:47:10 +0000
Committer Johnny C. Lam <jlam88@gmail.com>
Committer date 2013-03-12 04:47:10
Committer local date 2013-03-12 04:47:10 +0000
Commit 143d1e9a36fa595cfc4a9a15c463964b00881df2
Tree 4f9b1e48964c633c243c19ec819dd9bcc64084d7
Parent f7b05c2b93882397f76312156133173428e5ee0d
Improve encapsulation of OvaleFuture.

Add new method to OvaleFuture that generates an iterator for other modules
to walk the list of spells that are cast or are in flight to their
targets.  Make the list of active spells private since it doesn't need to
be accessed outside of OvaleFuture.

Use the iterator in OvaleState to apply the spell effects of those
travelling spells, and remove OvaleFuture:Apply() since it is no longer
needed.  This de-couples OvaleFuture from OvaleState.

git-svn-id: svn://svn.curseforge.net/wow/ovale/mainline/trunk@756 d5049fe3-3747-40f7-a4b5-f36d6801af5f