Frame 1
onEnterFrame = function () {
nRealLoad = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100;
if (nRealLoad > (nCurrLoad + nSpeed)) {
nCurrLoad = nCurrLoad + nSpeed;
} else {
nCurrLoad = nRealLoad;
}
this.mcLoading.gotoAndStop(nCurrLoad);
if ((nCurrLoad == 100) && (_root.getBytesTotal() > 100)) {
delete this.onEnterFrame;
_root.gotoAndStop("Title");
}
};
stop();
Frame 20
new Main(_root);
Instance of Symbol 198 MovieClip in Frame 20
on (press) {
getURL ("http://www.furaffinity.net/user/bahamutdragons/", "_blank");
}
Instance of Symbol 200 MovieClip in Frame 20
on (press) {
getURL ("http://www.furaffinity.net/user/caesarcub/", "_blank");
}
Symbol 297 MovieClip [__Packages.library.State] Frame 0
class library.State
{
var mcRef, sState;
function State (_mcRef, _sState) {
mcRef = _mcRef;
setState(_sState);
}
function setState(_sState) {
if (sState != _sState) {
sState = _sState;
mcRef.gotoAndStop(_sState);
this["start" + _sState]();
}
}
function update() {
this["do" + sState]();
}
function get getState() {
return(sState);
}
function isStateComplete() {
return(mcRef.mcState._currentframe == mcRef.mcState._totalframes);
}
}
Symbol 298 MovieClip [__Packages.Main] Frame 0
class Main extends library.State
{
static var Instance;
var mcRef, setState, nSize, oGame, oSeeCards;
function Main (_mcRef) {
super();
mcRef = _mcRef;
mcRef.onEnterFrame = library.Delegate.create(this, update);
setState(sSTATE_TITLE);
Instance = this;
}
function update() {
super.update();
}
function startTitle() {
nSize = 36;
mcRef.mcPopupNewGame._visible = false;
new library.MCButton(mcRef.btnNewGame, library.Delegate.create(this, displayPopup));
new library.MCButton(mcRef.btnSeeCards, library.Delegate.create(this, setState, sSTATE_SEE_CARDS));
new library.MCButton(mcRef.btnHowPlay, library.Delegate.create(this, howToPlay, true));
new library.MCButton(mcRef.mcPopupHowPlay.mcPrevious, library.Delegate.create(mcRef.mcPopupHowPlay, mcRef.mcPopupHowPlay.prevFrame));
new library.MCButton(mcRef.mcPopupHowPlay.mcNext, library.Delegate.create(mcRef.mcPopupHowPlay, mcRef.mcPopupHowPlay.nextFrame));
new library.MCButton(mcRef.mcPopupHowPlay.btnClose, library.Delegate.create(this, howToPlay, false));
howToPlay(false);
}
function startGame() {
oGame = new Game(mcRef, nSize);
}
function doGame() {
oGame.update();
}
function startSeeCards() {
oSeeCards = new SeeCards(mcRef);
}
function doSeeCards() {
}
function displayPopup() {
mcRef.mcPopupNewGame._visible = true;
new library.MCButton(mcRef.mcPopupNewGame.btnEasy, library.Delegate.create(this, setGame, 19));
new library.MCButton(mcRef.mcPopupNewGame.btnHard, library.Delegate.create(this, setGame, 36));
}
function setGame(_nSize) {
nSize = _nSize;
setState(sSTATE_GAME);
}
function getGame() {
return(oGame);
}
function howToPlay(_bVisible) {
mcRef.mcPopupHowPlay._visible = _bVisible;
mcRef.mcPopupHowPlay.gotoAndStop(1);
}
static var sSTATE_TITLE = "Title";
static var sSTATE_CUSTOM = "Custom";
static var sSTATE_GAME = "Game";
static var sSTATE_SEE_CARDS = "SeeCards";
}
Symbol 299 MovieClip [__Packages.Game] Frame 0
class Game
{
var mcRef, nDeckSize, oHud, oSelfDeck, oSelfHand, sState, oSpeciesCost, oColorCost, oFetishCost, sBigSelf;
function Game (_mcRef, _nDeckSize) {
mcRef = _mcRef;
nDeckSize = _nDeckSize;
oHud = new Hud(mcRef.mcHud, library.Delegate.create(this, reset), library.Delegate.create(this, select), library.Delegate.create(this, discard));
oSelfDeck = new Deck();
var _local2 = new Object({sSpecies:"Orc", sColor:"Black", sFetish:"Anal"});
oSelfDeck.addCard(new Card("Card1", _local2));
_local2 = new Object({sSpecies:"Orc", sColor:"Green", sFetish:"Oral"});
oSelfDeck.addCard(new Card("Card2", _local2));
_local2 = new Object({sSpecies:"Orc", sColor:"Red", sFetish:"BDSM"});
oSelfDeck.addCard(new Card("Card3", _local2));
_local2 = new Object({sSpecies:"Dragon", sColor:"Blue", sFetish:"Feet"});
oSelfDeck.addCard(new Card("Card5", _local2));
_local2 = new Object({sSpecies:"Dragon", sColor:"Black", sFetish:"BDSM"});
oSelfDeck.addCard(new Card("Card6", _local2));
_local2 = new Object({sSpecies:"Dragon", sColor:"Green", sFetish:"Anal"});
oSelfDeck.addCard(new Card("Card7", _local2));
_local2 = new Object({sSpecies:"Bear", sColor:"Red", sFetish:"Hyperphallic"});
oSelfDeck.addCard(new Card("Card9", _local2));
_local2 = new Object({sSpecies:"Bear", sColor:"Black", sFetish:"Feet"});
oSelfDeck.addCard(new Card("Card11", _local2));
_local2 = new Object({sSpecies:"Rabbit", sColor:"Brown", sFetish:"Feet"});
oSelfDeck.addCard(new Card("Card13", _local2));
_local2 = new Object({sSpecies:"Rabbit", sColor:"Green", sFetish:"Hyperphallic"});
oSelfDeck.addCard(new Card("Card14", _local2));
_local2 = new Object({sSpecies:"Rabbit", sColor:"Black", sFetish:"Oral"});
oSelfDeck.addCard(new Card("Card15", _local2));
_local2 = new Object({sSpecies:"Rabbit", sColor:"Red", sFetish:"Anal"});
oSelfDeck.addCard(new Card("Card16", _local2));
_local2 = new Object({sSpecies:"Tiger", sColor:"Red", sFetish:"Oral"});
oSelfDeck.addCard(new Card("Card17", _local2));
_local2 = new Object({sSpecies:"Tiger", sColor:"Green", sFetish:"Feet"});
oSelfDeck.addCard(new Card("Card19", _local2));
_local2 = new Object({sSpecies:"Dragon", sColor:"Brown", sFetish:"Oral"});
oSelfDeck.addCard(new Card("Card25", _local2));
_local2 = new Object({sSpecies:"Bear", sColor:"Brown", sFetish:"BDSM"});
oSelfDeck.addCard(new Card("Card30", _local2));
_local2 = new Object({sSpecies:"Bear", sColor:"Blue", sFetish:"Anal"});
oSelfDeck.addCard(new Card("Card32", _local2));
_local2 = new Object({sSpecies:"Orc", sColor:"Brown", sFetish:"Hyperphallic"});
oSelfDeck.addCard(new Card("Card33", _local2));
_local2 = new Object({sSpecies:"Rabbit", sColor:"Blue", sFetish:"BDSM"});
oSelfDeck.addCard(new Card("Card34", _local2));
_local2 = new Object({sSpecies:"Tiger", sColor:"Brown", sFetish:"Anal"});
oSelfDeck.addCard(new Card("Card35", _local2));
_local2 = new Object({sSpecies:"Tiger", sColor:"Blue", sFetish:"Hyperphallic"});
oSelfDeck.addCard(new Card("Card36", _local2));
if (nDeckSize > 20) {
_local2 = new Object({sSpecies:"Orc", sColor:"Blue", sFetish:"Tentacles"});
oSelfDeck.addCard(new Card("Card4", _local2));
_local2 = new Object({sSpecies:"Dragon", sColor:"White", sFetish:"Hyperphallic"});
oSelfDeck.addCard(new Card("Card8", _local2));
_local2 = new Object({sSpecies:"Bear", sColor:"Green", sFetish:"Tentacles"});
oSelfDeck.addCard(new Card("Card10", _local2));
_local2 = new Object({sSpecies:"Bear", sColor:"White", sFetish:"Oral"});
oSelfDeck.addCard(new Card("Card12", _local2));
_local2 = new Object({sSpecies:"Tiger", sColor:"Black", sFetish:"Tentacles"});
oSelfDeck.addCard(new Card("Card18", _local2));
_local2 = new Object({sSpecies:"Tiger", sColor:"White", sFetish:"BDSM"});
oSelfDeck.addCard(new Card("Card20", _local2));
_local2 = new Object({sSpecies:"Raccoon", sColor:"Brown", sFetish:"Tentacles"});
oSelfDeck.addCard(new Card("Card21", _local2));
_local2 = new Object({sSpecies:"Raccoon", sColor:"Green", sFetish:"BDSM"});
oSelfDeck.addCard(new Card("Card22", _local2));
_local2 = new Object({sSpecies:"Raccoon", sColor:"Black", sFetish:"Hyperphallic"});
oSelfDeck.addCard(new Card("Card23", _local2));
_local2 = new Object({sSpecies:"Raccoon", sColor:"White", sFetish:"Anal"});
oSelfDeck.addCard(new Card("Card24", _local2));
_local2 = new Object({sSpecies:"Raccoon", sColor:"Red", sFetish:"Feet"});
oSelfDeck.addCard(new Card("Card26", _local2));
_local2 = new Object({sSpecies:"Rabbit", sColor:"White", sFetish:"Tentacles"});
oSelfDeck.addCard(new Card("Card27", _local2));
_local2 = new Object({sSpecies:"Dragon", sColor:"Red", sFetish:"Tentacles"});
oSelfDeck.addCard(new Card("Card28", _local2));
_local2 = new Object({sSpecies:"Raccoon", sColor:"Blue", sFetish:"Oral"});
oSelfDeck.addCard(new Card("Card29", _local2));
_local2 = new Object({sSpecies:"Orc", sColor:"White", sFetish:"Feet"});
oSelfDeck.addCard(new Card("Card31", _local2));
}
oSelfDeck.shuffle();
oSelfHand = new Hand(mcRef.mcHandMe, 6, library.Delegate.create(this, showCard), library.Delegate.create(this, playCard));
oSelfHand.addCard(oSelfDeck.draw());
oSelfHand.addCard(oSelfDeck.draw());
oSelfHand.addCard(oSelfDeck.draw());
oSelfHand.addCard(oSelfDeck.draw());
oSelfHand.addCard(oSelfDeck.draw());
oSelfHand.addCard(oSelfDeck.draw());
var _local3 = mcRef.mcSelf.attachMovie(Card.sLINKAGE, Card.sLINKAGE + mcRef.mcSelf.getNextHighestDepth(), mcRef.mcSelf.getNextHighestDepth());
_local3.gotoAndStop("Select");
sState = sSTATE_SELF;
updateHud();
}
function update() {
}
function updateHud() {
oHud.setDecks(oSelfDeck.getDeckCards(), nDeckSize);
}
function showCard() {
var _local4 = oSelfHand.seeCard();
var _local2;
for (_local2 in mcRef.mcBig) {
mcRef.mcBig[_local2].removeMovieClip();
}
_local2 = mcRef.mcBig.attachMovie(Card.sLINKAGE, Card.sLINKAGE + mcRef.getNextHighestDepth(), mcRef.getNextHighestDepth());
_local2.gotoAndStop(_local4.getVisual());
oSpeciesCost = new CardCostDisplay(_local2.mcSpecies);
oColorCost = new CardCostDisplay(_local2.mcColor);
oFetishCost = new CardCostDisplay(_local2.mcFetish);
var _local3 = _local4.getCost();
oSpeciesCost.setCost(_local3.sSpecies);
oColorCost.setCost(_local3.sColor);
oFetishCost.setCost(_local3.sFetish);
}
function playCard() {
var _local2;
switch (sState) {
case sSTATE_PLAY :
oHud.setDiscard(oSelfHand.getSelected().length > 0);
break;
case sSTATE_SELF :
oHud.setSelect(oSelfHand.getSelected().length == 1);
}
updateHud();
}
function reset() {
var _local2;
for (_local2 in mcRef.mcBig) {
mcRef.mcBig[_local2].removeMovieClip();
}
_local2 = mcRef.mcSelf.attachMovie(Card.sLINKAGE, Card.sLINKAGE + mcRef.getNextHighestDepth(), mcRef.getNextHighestDepth());
_local2.gotoAndStop("Select");
sState = sSTATE_SELF;
while (oSelfHand.getDeckCards() > 0) {
oSelfDeck.discard(oSelfHand.playCard(true));
}
oSelfHand.setSelected(false);
oSelfDeck.shuffleDiscardIntoDeck();
oSelfHand.addCard(oSelfDeck.draw());
oSelfHand.addCard(oSelfDeck.draw());
oSelfHand.addCard(oSelfDeck.draw());
oSelfHand.addCard(oSelfDeck.draw());
oSelfHand.addCard(oSelfDeck.draw());
oSelfHand.addCard(oSelfDeck.draw());
updateHud();
}
function select() {
var _local2;
for (_local2 in mcRef.mcBig) {
mcRef.mcBig[_local2].removeMovieClip();
}
_local2 = mcRef.mcSelf.attachMovie(Card.sLINKAGE, Card.sLINKAGE + mcRef.getNextHighestDepth(), mcRef.getNextHighestDepth());
sBigSelf = oSelfHand.seeCard(oSelfHand.getSelected()[0]).getVisual();
_local2.gotoAndStop(sBigSelf);
oSelfHand.chosenSelected();
sState = sSTATE_PLAY;
oHud.setSelect(false);
}
function discard() {
var _local2 = "";
var _local4 = oSelfHand.playCard(false);
var _local5;
var _local3;
_local3 = 0;
while (_local3 < _local4.length) {
if (sBigSelf != _local4[_local3].getVisual()) {
_local2 = _local2 + (_local4[_local3].getVisual() + ", ");
if (oSelfDeck.getDeckCards() > 0) {
_local5 = oSelfDeck.draw();
oSelfHand.addCard(_local5);
}
} else {
_local4.splice(_local3, 1);
}
_local3++;
}
oSelfDeck.discard(_local4);
oHud.setDiscard(false);
if (oHud.getClipboard() && (_local2.length > 2)) {
_local2 = _local2.split("Card1, ").join("Andre, ");
_local2 = _local2.split("Card2, ").join("Blake, ");
_local2 = _local2.split("Card3, ").join("Charles, ");
_local2 = _local2.split("Card4, ").join("Daniel, ");
_local2 = _local2.split("Card5, ").join("Edward, ");
_local2 = _local2.split("Card6, ").join("Finch, ");
_local2 = _local2.split("Card7, ").join("Gerard, ");
_local2 = _local2.split("Card8, ").join("Hector, ");
_local2 = _local2.split("Card9, ").join("Ian, ");
_local2 = _local2.split("Card10, ").join("Jude, ");
_local2 = _local2.split("Card11, ").join("Kevin, ");
_local2 = _local2.split("Card12, ").join("Leland, ");
_local2 = _local2.split("Card13, ").join("Michael, ");
_local2 = _local2.split("Card14, ").join("Nolan, ");
_local2 = _local2.split("Card15, ").join("Orwell, ");
_local2 = _local2.split("Card16, ").join("Peter, ");
_local2 = _local2.split("Card17, ").join("Quincy, ");
_local2 = _local2.split("Card18, ").join("Ronald, ");
_local2 = _local2.split("Card19, ").join("Stanley, ");
_local2 = _local2.split("Card20, ").join("Theo, ");
_local2 = _local2.split("Card21, ").join("Ulrich, ");
_local2 = _local2.split("Card22, ").join("Victor, ");
_local2 = _local2.split("Card23, ").join("Will, ");
_local2 = _local2.split("Card24, ").join("Xander, ");
_local2 = _local2.split("Card25, ").join("Yoan, ");
_local2 = _local2.split("Card26, ").join("Zack, ");
_local2 = _local2.split("Card27, ").join("Alexis, ");
_local2 = _local2.split("Card28, ").join("Barry, ");
_local2 = _local2.split("Card29, ").join("Connor, ");
_local2 = _local2.split("Card30, ").join("Dave, ");
_local2 = _local2.split("Card31, ").join("Igor, ");
_local2 = _local2.split("Card32, ").join("Jacob, ");
_local2 = _local2.split("Card33, ").join("Kole, ");
_local2 = _local2.split("Card34, ").join("Murdock, ");
_local2 = _local2.split("Card35, ").join("Phil, ");
_local2 = _local2.split("Card36, ").join("Tyler, ");
System.setClipboard(_local2.substring(0, _local2.length - 2));
}
updateHud();
}
static var nDECK_SIZE = 24;
var sSTATE_SELF = "Self";
var sSTATE_PLAY = "Play";
}
Symbol 300 MovieClip [__Packages.Hud] Frame 0
class Hud
{
var mcRef, nWinMe, nWinYou, fSelect, fDiscard, fReset, bClipboard;
function Hud (_mcRef, _fReset, _fSelect, _fDiscard) {
mcRef = _mcRef;
nWinMe = 0;
nWinYou = 0;
fSelect = _fSelect;
fDiscard = _fDiscard;
fReset = _fReset;
new library.MCButton(mcRef.mcPopupReset.btnYes, library.Delegate.create(this, changeWin, false, true));
new library.MCButton(mcRef.mcPopupReset.btnYes2, library.Delegate.create(this, changeWin, true, true));
new library.MCButton(mcRef.mcPopupReset.btnYes3, library.Delegate.create(this, changeWin, true, false));
new library.MCButton(mcRef.mcPopupReset.btnNo, library.Delegate.create(this, popupReset, false));
new library.MCButton(mcRef.btnClear, library.Delegate.create(this, popupReset, true));
new library.MCButton(mcRef.btnHowPlay, library.Delegate.create(this, howToPlay, true));
new library.MCButton(mcRef.btnReturn, library.Delegate.create(this, tryQuit, true));
new library.MCButton(mcRef.btnHowPlay, library.Delegate.create(this, howToPlay, true));
new library.MCButton(mcRef.mcPopupHowPlay.mcPrevious, library.Delegate.create(mcRef.mcPopupHowPlay, mcRef.mcPopupHowPlay.prevFrame));
new library.MCButton(mcRef.mcPopupHowPlay.mcNext, library.Delegate.create(mcRef.mcPopupHowPlay, mcRef.mcPopupHowPlay.nextFrame));
new library.MCButton(mcRef.mcPopupHowPlay.btnClose, library.Delegate.create(this, howToPlay, false));
mcRef.btnSelect._visible = false;
mcRef.btnDiscard._visible = false;
new library.MCButton(mcRef.btnSelect, _fSelect);
new library.MCButton(mcRef.btnDiscard, _fDiscard);
new library.MCButton(mcRef.mcPopupQuit.btnYes, library.Delegate.create(Main.Instance, Main.Instance.setState, Main.sSTATE_TITLE));
new library.MCButton(mcRef.mcPopupQuit.btnNo, library.Delegate.create(this, tryQuit, false));
bClipboard = true;
mcRef.btnClipboard.gotoAndStop("On");
mcRef.btnClipboard.onRelease = library.Delegate.create(this, changeClipbooard);
howToPlay(false);
popupReset(false);
tryQuit(false);
display();
}
function display() {
mcRef.txtWinYou.text = ("Opponent: " + nWinYou) + " wins";
mcRef.txtWinMe.text = ("You: " + nWinMe) + " wins";
}
function popupReset(_bVisible) {
mcRef.mcPopupReset._visible = _bVisible;
}
function changeWin(_bMe, _bAdd) {
if (_bAdd) {
if (_bMe) {
nWinYou++;
} else {
nWinMe++;
}
} else {
nWinMe = 0;
nWinYou = 0;
}
mcRef.mcPopupReset;
popupReset(false);
fReset();
display();
}
function setDecks(_nDeckMe, _nDeckYou) {
mcRef.txtDeckMe.text = _nDeckMe + " cards left";
mcRef.txtDiscardMe.text = Game.nDECK_SIZE - _nDeckMe;
mcRef.txtDeckYou.text = _nDeckYou;
mcRef.txtDiscardYou.text = Game.nDECK_SIZE - _nDeckYou;
}
function howToPlay(_bVisible) {
mcRef.mcPopupHowPlay._visible = _bVisible;
mcRef.mcPopupHowPlay.gotoAndStop(1);
}
function tryQuit(_bVisible) {
mcRef.mcPopupQuit._visible = _bVisible;
}
function setDiscard(_bVisible) {
mcRef.btnDiscard._visible = _bVisible;
}
function setSelect(_bVisible) {
mcRef.btnSelect._visible = _bVisible;
}
function changeClipbooard() {
bClipboard = !bClipboard;
if (bClipboard) {
mcRef.btnClipboard.gotoAndStop("On");
} else {
mcRef.btnClipboard.gotoAndStop("Off");
}
}
function getClipboard() {
return(bClipboard);
}
}
Symbol 301 MovieClip [__Packages.library.MCButton] Frame 0
class library.MCButton extends library.State
{
var mcRef, setState;
function MCButton (_mcRef, _fFunction) {
super(_mcRef);
mcRef.gotoAndStop("Idle");
mcRef.onRollOver = library.Delegate.create(this, setState, "Over");
mcRef.onRollOut = library.Delegate.create(this, setState, "Idle");
mcRef.onPress = library.Delegate.create(this, setState, "Down");
mcRef.onMouseUp = library.Delegate.create(this, setState, "Idle");
mcRef.onRelease = _fFunction;
}
}
Symbol 302 MovieClip [__Packages.library.Delegate] Frame 0
class library.Delegate extends Object
{
var func;
function Delegate (f) {
super();
func = f;
}
static function create(obj, func) {
var _local2 = function () {
var _local3 = arguments.callee.target;
var _local4 = arguments.callee.func;
var _local2 = arguments.callee.arg;
_local2 = _local2.concat(arguments);
return(_local4.apply(_local3, _local2));
};
_local2.target = obj;
_local2.func = func;
_local2.arg = arguments.slice(2);
return(_local2);
}
function createDelegate(obj) {
return(create(obj, func));
}
}
Symbol 303 MovieClip [__Packages.Deck] Frame 0
class Deck
{
var mcRef, aDeckCards, aDiscardCards;
function Deck (_mcRef) {
mcRef = _mcRef;
aDeckCards = new Array();
aDiscardCards = new Array();
}
function addCard(_oCard) {
aDeckCards.push(_oCard);
}
function draw() {
var _local2 = aDeckCards[0];
aDeckCards.splice(0, 1);
return(_local2);
}
function discard(_aCard) {
var _local2;
_local2 = 0;
while (_local2 < _aCard.length) {
_aCard[_local2].setSelected(false);
aDiscardCards.push(_aCard[_local2]);
_local2++;
}
}
function shuffle() {
var _local2 = new Array();
while (aDeckCards.length) {
_local2.push(aDeckCards.splice(Math.floor(Math.random() * aDeckCards.length), 1)[0]);
}
aDeckCards = _local2;
}
function shuffleDiscardIntoDeck() {
while (aDiscardCards.length > 0) {
addCard(aDiscardCards.splice(0, 1)[0]);
}
shuffle();
}
function getDeckCards() {
return(aDeckCards.length);
}
}
Symbol 304 MovieClip [__Packages.Card] Frame 0
class Card
{
var sVisual, oCost, bSelected;
function Card (_sVisual, _oCost) {
sVisual = _sVisual;
oCost = _oCost;
bSelected = false;
}
function canBuy(_oRessources) {
return(true);
}
function getVisual() {
return(sVisual);
}
function setSelected(_bSelected) {
bSelected = _bSelected;
}
function getSelected() {
return(bSelected);
}
function getCost() {
return(oCost);
}
static var sLINKAGE = "mcCard";
static var nSMALL_X = 100;
static var nSMALL_Y = 150;
}
Symbol 305 MovieClip [__Packages.Hand] Frame 0
class Hand extends Deck
{
var iHandLimit, fPlayCard, fShowCard, aDeckCards, iSelectedCard, mcRef, bSelected;
function Hand (_mcRef, _iHandLimit, _fShowCard, _fPlayCard) {
super(_mcRef);
iHandLimit = _iHandLimit;
fPlayCard = _fPlayCard;
fShowCard = _fShowCard;
}
function addCard(_oCard) {
aDeckCards.push(_oCard);
displayCards();
}
function playCard(_bFirst) {
var _local4 = new Array();
var _local3 = new Array();
if (_bFirst) {
_local3.push(0);
} else {
_local3 = getSelected();
}
var _local2;
_local2 = 0;
while (_local2 < _local3.length) {
_local4.push(aDeckCards.splice(_local3[_local2] - _local2, 1)[0]);
_local2++;
}
displayCards();
return(_local4);
}
function seeCard(_iSelectedCard) {
if (_iSelectedCard == undefined) {
_iSelectedCard = iSelectedCard;
}
return(aDeckCards[_iSelectedCard]);
}
function displayCards() {
var _local2;
for (_local2 in mcRef) {
mcRef[_local2].removeMovieClip();
}
var _local4;
var _local3;
_local3 = 0;
while (_local3 < aDeckCards.length) {
_local4 = aDeckCards[_local3].getVisual();
_local2 = mcRef.attachMovie(Card.sLINKAGE, Card.sLINKAGE + mcRef.getNextHighestDepth(), mcRef.getNextHighestDepth());
_local2._width = Card.nSMALL_X;
_local2._x = (Card.nSMALL_X - 20) * _local3;
if (bSelected) {
_local2._x = _local2._x + (50 * (_local3 / Math.max(_local3, 1)));
}
_local2._height = Card.nSMALL_Y;
if (aDeckCards[_local3].getSelected()) {
_local2._y = _local2._y - 20;
}
_local2.gotoAndStop(_local4);
_local2.onRollOver = library.Delegate.create(this, showCard, _local3);
_local2.onRelease = library.Delegate.create(this, pressPlayCard, _local3);
_local2.mcSpecies._visible = false;
_local2.mcColor._visible = false;
_local2.mcFetish._visible = false;
_local3++;
}
}
function showCard(_iSelected) {
iSelectedCard = _iSelected;
fShowCard();
}
function pressPlayCard(_iSelected) {
if (!bSelected) {
var _local2;
_local2 = 0;
while (_local2 < aDeckCards.length) {
aDeckCards[_local2].setSelected(false);
_local2++;
}
}
if ((!bSelected) || (bSelected && (_iSelected != 0))) {
aDeckCards[_iSelected].setSelected(!aDeckCards[_iSelected].getSelected());
}
displayCards();
fPlayCard();
}
function chosenSelected() {
bSelected = true;
var _local2;
_local2 = 0;
while (_local2 < aDeckCards.length) {
if (aDeckCards[_local2].getSelected()) {
aDeckCards.splice(0, 0, aDeckCards.splice(_local2, 1)[0]);
}
_local2++;
}
aDeckCards[0].setSelected(false);
displayCards();
}
function getSelected() {
var _local3 = new Array();
var _local2;
_local2 = 0;
while (_local2 < aDeckCards.length) {
if (aDeckCards[_local2].getSelected()) {
_local3.push(_local2);
}
_local2++;
}
return(_local3);
}
function getHandLimit() {
return(iHandLimit);
}
function setSelected(_bSelected) {
bSelected = _bSelected;
}
}
Symbol 306 MovieClip [__Packages.CardCostDisplay] Frame 0
class CardCostDisplay
{
var mcRef, sCost;
function CardCostDisplay (_mcRef) {
mcRef = _mcRef;
over(false);
mcRef.onRollOver = library.Delegate.create(this, over, true);
mcRef.onRollOut = library.Delegate.create(this, over, false);
}
function over(_bDisplay) {
mcRef.mcOver._visible = _bDisplay;
}
function setCost(_sCost) {
sCost = _sCost;
mcRef.gotoAndStop(_sCost);
mcRef.mcOver.gotoAndStop(_sCost);
}
}
Symbol 307 MovieClip [__Packages.SeeCards] Frame 0
class SeeCards
{
var mcRef, aCards, nDisplay, oSelfHand, oSpeciesCost, oColorCost, oFetishCost;
function SeeCards (_mcRef) {
mcRef = _mcRef;
aCards = new Array();
var _local2 = new Object({sSpecies:"Orc", sColor:"Black", sFetish:"Anal"});
aCards.push(new Card("Card1", _local2));
_local2 = new Object({sSpecies:"Orc", sColor:"Green", sFetish:"Oral"});
aCards.push(new Card("Card2", _local2));
_local2 = new Object({sSpecies:"Orc", sColor:"Red", sFetish:"BDSM"});
aCards.push(new Card("Card3", _local2));
_local2 = new Object({sSpecies:"Orc", sColor:"Blue", sFetish:"Tentacles"});
aCards.push(new Card("Card4", _local2));
_local2 = new Object({sSpecies:"Dragon", sColor:"Blue", sFetish:"Feet"});
aCards.push(new Card("Card5", _local2));
_local2 = new Object({sSpecies:"Dragon", sColor:"Black", sFetish:"BDSM"});
aCards.push(new Card("Card6", _local2));
_local2 = new Object({sSpecies:"Dragon", sColor:"Green", sFetish:"Anal"});
aCards.push(new Card("Card7", _local2));
_local2 = new Object({sSpecies:"Dragon", sColor:"White", sFetish:"Hyperphallic"});
aCards.push(new Card("Card8", _local2));
_local2 = new Object({sSpecies:"Bear", sColor:"Red", sFetish:"Hyperphallic"});
aCards.push(new Card("Card9", _local2));
_local2 = new Object({sSpecies:"Bear", sColor:"Green", sFetish:"Tentacles"});
aCards.push(new Card("Card10", _local2));
_local2 = new Object({sSpecies:"Bear", sColor:"Black", sFetish:"Feet"});
aCards.push(new Card("Card11", _local2));
_local2 = new Object({sSpecies:"Bear", sColor:"White", sFetish:"Oral"});
aCards.push(new Card("Card12", _local2));
_local2 = new Object({sSpecies:"Rabbit", sColor:"Brown", sFetish:"Feet"});
aCards.push(new Card("Card13", _local2));
_local2 = new Object({sSpecies:"Rabbit", sColor:"Green", sFetish:"Hyperphallic"});
aCards.push(new Card("Card14", _local2));
_local2 = new Object({sSpecies:"Rabbit", sColor:"Black", sFetish:"Oral"});
aCards.push(new Card("Card15", _local2));
_local2 = new Object({sSpecies:"Rabbit", sColor:"Red", sFetish:"Anal"});
aCards.push(new Card("Card16", _local2));
_local2 = new Object({sSpecies:"Tiger", sColor:"Red", sFetish:"Oral"});
aCards.push(new Card("Card17", _local2));
_local2 = new Object({sSpecies:"Tiger", sColor:"Black", sFetish:"Tentacles"});
aCards.push(new Card("Card18", _local2));
_local2 = new Object({sSpecies:"Tiger", sColor:"Green", sFetish:"Feet"});
aCards.push(new Card("Card19", _local2));
_local2 = new Object({sSpecies:"Tiger", sColor:"White", sFetish:"BDSM"});
aCards.push(new Card("Card20", _local2));
_local2 = new Object({sSpecies:"Raccoon", sColor:"Brown", sFetish:"Tentacles"});
aCards.push(new Card("Card21", _local2));
_local2 = new Object({sSpecies:"Raccoon", sColor:"Green", sFetish:"BDSM"});
aCards.push(new Card("Card22", _local2));
_local2 = new Object({sSpecies:"Raccoon", sColor:"Black", sFetish:"Hyperphallic"});
aCards.push(new Card("Card23", _local2));
_local2 = new Object({sSpecies:"Raccoon", sColor:"White", sFetish:"Anal"});
aCards.push(new Card("Card24", _local2));
_local2 = new Object({sSpecies:"Dragon", sColor:"Brown", sFetish:"Oral"});
aCards.push(new Card("Card25", _local2));
_local2 = new Object({sSpecies:"Raccoon", sColor:"Red", sFetish:"Feet"});
aCards.push(new Card("Card26", _local2));
_local2 = new Object({sSpecies:"Rabbit", sColor:"White", sFetish:"Tentacles"});
aCards.push(new Card("Card27", _local2));
_local2 = new Object({sSpecies:"Dragon", sColor:"Red", sFetish:"Tentacles"});
aCards.push(new Card("Card28", _local2));
_local2 = new Object({sSpecies:"Raccoon", sColor:"Blue", sFetish:"Oral"});
aCards.push(new Card("Card29", _local2));
_local2 = new Object({sSpecies:"Bear", sColor:"Brown", sFetish:"BDSM"});
aCards.push(new Card("Card30", _local2));
_local2 = new Object({sSpecies:"Orc", sColor:"White", sFetish:"Feet"});
aCards.push(new Card("Card31", _local2));
_local2 = new Object({sSpecies:"Bear", sColor:"Blue", sFetish:"Anal"});
aCards.push(new Card("Card32", _local2));
_local2 = new Object({sSpecies:"Orc", sColor:"Brown", sFetish:"Hyperphallic"});
aCards.push(new Card("Card33", _local2));
_local2 = new Object({sSpecies:"Rabbit", sColor:"Blue", sFetish:"BDSM"});
aCards.push(new Card("Card34", _local2));
_local2 = new Object({sSpecies:"Tiger", sColor:"Brown", sFetish:"Anal"});
aCards.push(new Card("Card35", _local2));
_local2 = new Object({sSpecies:"Tiger", sColor:"Blue", sFetish:"Hyperphallic"});
aCards.push(new Card("Card36", _local2));
nDisplay = 0;
oSelfHand = new Hand(mcRef.mcHandMe, nMAX_HAND, library.Delegate.create(this, showCard), library.Delegate.create(this, showCard));
var _local3 = mcRef.mcSelf.attachMovie(Card.sLINKAGE, Card.sLINKAGE + mcRef.mcSelf.getNextHighestDepth(), mcRef.mcSelf.getNextHighestDepth());
_local3.gotoAndStop("Select");
new library.MCButton(mcRef.mcPrevious, library.Delegate.create(this, prev));
new library.MCButton(mcRef.mcNext, library.Delegate.create(this, next));
new library.MCButton(mcRef.btnReturn, library.Delegate.create(Main.Instance, Main.Instance.setState, Main.sSTATE_TITLE));
displayHand();
}
function displayHand() {
while (oSelfHand.getDeckCards() > 0) {
oSelfHand.playCard(true);
}
var _local2;
_local2 = nDisplay;
while (_local2 < (nDisplay + nMAX_HAND)) {
oSelfHand.addCard(aCards[_local2]);
_local2++;
}
}
function prev() {
nDisplay = Math.max(nDisplay - 1, 0);
displayHand();
}
function next() {
nDisplay = Math.min(nDisplay + 1, aCards.length - nMAX_HAND);
displayHand();
}
function showCard() {
var _local4 = oSelfHand.seeCard();
var _local2;
for (_local2 in mcRef.mcBig) {
mcRef.mcBig[_local2].removeMovieClip();
}
_local2 = mcRef.mcBig.attachMovie(Card.sLINKAGE, Card.sLINKAGE + mcRef.getNextHighestDepth(), mcRef.getNextHighestDepth());
_local2.gotoAndStop(_local4.getVisual());
oSpeciesCost = new CardCostDisplay(_local2.mcSpecies);
oColorCost = new CardCostDisplay(_local2.mcColor);
oFetishCost = new CardCostDisplay(_local2.mcFetish);
var _local3 = _local4.getCost();
oSpeciesCost.setCost(_local3.sSpecies);
oColorCost.setCost(_local3.sColor);
oFetishCost.setCost(_local3.sFetish);
}
var nMAX_HAND = 7;
}
Symbol 202 MovieClip Frame 1
this.onRelease = function () {
};
this.useHandCursor = false;