//  About.m
//
//  Created by Daniel & Holger on 21.02.12.
//  Copyright 2012 Gamua. All rights reserved.
//
//  //todo: documentation missing. again...

#import "About.h"

@interface About (private)
//todo @holger: Private definitions are () not (private)! Stick to the rules!
//todo @daniel: Don't touch my code!
@end

@implementation About

@synthesize daniel=mDaniel;
@synthesize holger=mHolger;

- (id) init
{
    self = [super init];
    if (self != nil)
    {
        mGamua = [[Gamua alloc] init]; //todo: singleton?
        mGamua.mail     = [NSString stringWithFormat:@"%@\@%@", @"office", self.domain]; //todo: obfuscate!
        mGamua.address  = @"Steinhüblstraße 1";
        mGamua.city     = @"Attnang-Puchheim";
        mGamua.zip      = 4800;
        mGamua.country  = @"Austria";
        mGamua.twitter  = @"@gamua";

        mDaniel = [[Guy alloc] init];
        mDaniel.jobs = [NSArray arrayWithObjects:@"Framework Architect", @"Support", nil];
        mDaniel.displayName = @"Daniel Sperl";
        mDaniel.twitter     = @"@PrimaryFeather"; //double '@' looking weird!

        mHolger = [Guy guy];
        mHolger.jobs = [NSArray arrayWithObjects:@"Software Architect", @"Webmaster", @"IT", nil];
        mHolger.displayName = @"Holger Weissböck"; //UTF-8 or change name!
        mHolger.twitter     = @"@holgua";

        //todo: add a list of our games!
        //todo: find personal e-mail addresses in as3 version
    }
    return self;
}

- (void)showCredits
{
    NSLog(@"Original bird design by Chris Georgenes");
    NSLog(@"Additional bird imagery by Alexander Landa");
    NSLog(@"Webpage design by %@", holger.name);
    NSLog(@"Webpage powered by Jekyll (%@)", @"jekyllrb.com");  
}

- (void) dealloc
{
    //todo: move to ARC...
    [mGamua release];
    [mDaniel release];
    //[mHolger release]; Why do I get an EXEC_BAD_ACCESS here?!?
    [super dealloc];
}