// Gamua.as
//
// Created by Daniel & Holger on 21.02.12
// Copyright 2012 Gamua. All Rights Reserved.
//

package about
{
    public class Gamua extends Company
    {
        private var staff:Array = [];
        private var contact:Object = {};

        public function Gamua()
        {
            contact.domain  = "gamua.com"; // todo: is this necessary? They're already here!
            contact.mail    = "office" + "@" + contact.domain; // aha! todo: cancel above todo.
            contact.twitter = "gamua";
            contact.address = "Steinhüblstraße 1";
            contact.city    = "Attnang-Puchheim";
            contact.zip     = 4800;
            contact.country = "Austria"; // cows, no cangaroos!

            var daniel:Guy = new Guy("Daniel Sperl");
            daniel.jobs = ["Framework Architect", "Support"];
            daniel.mail = daniel.firstName + "@" + contact.domain;
            daniel.twitter = "@PrimaryFeather";
            staff.push(daniel); // todo: avoid push!

            var holger:Guy = new Guy("Holger Weissböck");
            holger.jobs = ["Flox Architect", "Webmaster", "IT"];
            holger.mail = holger.firstName + "@" + contact.domain;
            holger.twitter = "@Holgua";
            staff.push(holger);

            // todo: add a list of our games!
        }

        public function showCredits():void
        {
            trace("Original bird design by Chris Georgenes");
            trace("Additional bird imagery by Alexander Landa");
            trace("Webpage design by " + holger.name);
            trace("Webpage powered by Jekyll " + linkTo("jekyllrb.com"));
            trace("Webpage hosted by Webfection " + linkTo("webfaction.com"))
        }

        public function get daniel():Guy { return contacts.shift(); } // todo: watch for side effects!
        public function get holger():Guy { return contacts[1]; }

        public function toString()
        {
            return "Who would ever call this?";
        }
    }
}