Log in

I forgot my password

This World
The forum has a new format for working on a revival - new everything if people decide that they want to start a new campaign.

* The Warden Commander is a small dwarf named Nygozy, duster background - may change
* Alistair Theirin is the King and did the ritual with Morrigan to save Nygozy.
* The Cousland background is taken by Macha.* - don't know yet
* The elf background is taken by Calliara.

Latest topics
» CALLING - Anyone Left?
Tue Feb 10, 2015 11:26 am by Damien Zeehem

» Super Quick Sketch of Badassery
Wed Aug 27, 2014 12:04 pm by Calliara

» WHO CAN STILL PLAY?
Mon Aug 04, 2014 3:10 pm by Calliara

» Damien - the unoriginal soundtrack
Mon Nov 04, 2013 12:51 pm by Damien Zeehem

» The dawn of new days
Tue Oct 08, 2013 3:50 pm by Damien Zeehem

» Dwelling of Tears - A Double Entendre
Wed Sep 18, 2013 10:48 pm by Macha

» So - Dragon Age 3
Sat Jun 22, 2013 11:54 am by Ianto

» MSN Failure (and Graduating!)
Wed May 29, 2013 10:41 pm by Final Warrior

» Happy birthday Dragonis !
Tue May 14, 2013 11:25 pm by Dragonis


Head Treadmill

View previous topic View next topic Go down

Head Treadmill

Post  Nygozy on Wed Apr 11, 2012 7:15 pm

Hey everyone. I have a few threads to get to but my head has been on an ouch treadmill so I'm not quite up to much posting. I will try to get one in tonight but I don't know if my brain will let me.

Anyway, glad to see everyone back! We lost a couple of newer players but I'm sure we will gain more as we continue on. So let's see who is where:

Home Sweet Wardens' Home - Nygozy
Regrets in Wardens' Home - Elenri (aka Shade)
Sadness in Wardens' Home - Lithawen
Slacking in Wardens' Home - Maghai
Healing at Wardens' Home - Ianto and Dartmoor
Cleaning up in Wardens' Home - Caterina
Pen Work in Wardens' Home - Pendra
Confusion in Wardens' Home - Tatsoo
Returning to the Wardens' Home - Whoever comes in to continue the thread

And sorry to Caterina for spelling her name wrong on the main page for the last week.

Ok I'm going to scoot let my head rest.

_________________


Nygozy's Bio
avatar
Nygozy
Admin

Posts : 1064
Join date : 2010-05-20
Age : 51

View user profile

Back to top Go down

Re: Head Treadmill

Post  Final Warrior on Wed Apr 11, 2012 10:45 pm

There's an opening for Serethiel to post in Regrets, as well.

I think the current order is

10 Griffinhart
20 Tatsoo
30 Dragonis
40 Elenri
50 Serethiel
60 GOTO 10

(brb, going to kill myself for using both BASIC and a GOTO.)


Code:
do
{
    Final_Warrior.post(Griffinhart.getText());
    Nygozy.post(Tatsoo.getText());
    Dragonis.post(Fremelda.getText());
    Olivia.post(Serethiel.getText());
    Shade.post(Elenri.getText());
} while (!t497.done());

Though, now I wonder if instead we're all in a container of players, each with a container of characters, in which case it'd be something like...

Code:
// in Thread.h
class Thread
{
    public:
        void set_title(const std::string& str);
        std::string get_title();
        void set_done(const bool& flag);
        bool get_done(); const
        void add_poster(const Poster* poster); // Constant pointer to poster, or pointer to constant poster? Ergh, I forget
        Poster get_poster(); const
        // other public members functions

    private:
        Forum* forum; // pointer to Forum that points to this Thread
        std::string title;
        std::vector<Posters*> posters;
        std::iterator<vector<Posters*>> it; // crap, I've used auto for so long I forget how to declare an iterator without using auto
        bool done; // true if this thread is finished, else false
        // other private members and functions
}

// in Thread.cpp
void Thread::set_title(const std::string& str)
{
    title = str;
}

std::string Thread::get_title()
{
    std::string temp(title);
    return temp;
}

void Thread::set_done(const bool& flag)
{
    done = flag;
}

bool Thread::get_done() const
{
    bool temp(done);
    return temp;
}

void Thread::add_poster(const Poster* poster)
{
    posters.push_back(poster);
}

std::iterator<vector<Poster*>> Thread::get_poster() const
{
    if (posters.end() == it)
    {
        it = posters.begin();
    }

    auto rIt = it;
    ++it;
    return rIt;
}

// in main
Thread t497; // There has to be a better way of IDing threads
f2.add(t497); // f2 is Dragon Tales
t497.set_title("Regrets in Wardens' Home");
/* Other construction stuff - I should probably write a non-default construct or something, huh? */

// Posters are added in-order
t497.add_poster(Final_Warrior&);
t497.add_poster(Dragonis&);
t497.add_poster(Nygozy&);
t497.add_poster(Olivia&);
t497.add_poster(Shade&);

t497.set_done(false); // thread was just created, make sure it's not done (I should probably detail an actual constructor, huh)

do
{
    http://t497.get_poster()->make_post();
    // nevermind the above, I forget how to use -> when you have an iterator to a pointer
    *(t497.get_poster())->make_post();
} while (!t497.get_done());

// no need to check if thread is done; if we get to this code, presumable the above do-while tripped false
t497.move_to(f29); // should probably set up an enum or something of forums and threads, now that I think about it...

/* Actually, it'd make more sense to have containers for those, too. Hashtables, probably.
  Also, this presumes that each Poster knows who to post as. Which means I totally didn't account for the fact that each Poster has a container (I'd probably use standard vectors because :lazy: ) of Characters.
  Honestly, if I keep thinking about this, I won't sleep until I've finished coding how our forums work.
*/

-- Griffinhart


Last edited by Final Warrior on Wed Apr 11, 2012 11:23 pm; edited 2 times in total (Reason for editing : FUCK BASIC >:V)

_________________


"My word is my honor. My honor is my life."
-- Demonchild, Angelkin, the Blackest Seraph, the Final Warrior

"I'm a traitor, will you trust me? I'm dead, will you return me to life? I'm hated, will you love me? I've lost my innocence, will you help me find it?
...Save your breath, there are some things you can't get back."
-- The ghost of Lady Aribeth de Tylmarande, Neverwinter Nights: Hordes of the Underdark

"Was au ga chs mea eterne manaf."
avatar
Final Warrior

Posts : 588
Join date : 2010-08-29
Location : Hardly Her(e|oic).

View user profile http://www.innocentmachine.com

Back to top Go down

Re: Head Treadmill

Post  Maghai on Sat Apr 14, 2012 1:17 pm

I'm betting someone's school drug is impeding his sleep patterns Wink

_________________


Maghai's Bio
avatar
Maghai

Posts : 139
Join date : 2010-08-20

View user profile

Back to top Go down

Re: Head Treadmill

Post  Final Warrior on Sat Apr 14, 2012 4:37 pm

>implying I have sleep patterns
>implying I have sleep

-- Griffinhart

_________________


"My word is my honor. My honor is my life."
-- Demonchild, Angelkin, the Blackest Seraph, the Final Warrior

"I'm a traitor, will you trust me? I'm dead, will you return me to life? I'm hated, will you love me? I've lost my innocence, will you help me find it?
...Save your breath, there are some things you can't get back."
-- The ghost of Lady Aribeth de Tylmarande, Neverwinter Nights: Hordes of the Underdark

"Was au ga chs mea eterne manaf."
avatar
Final Warrior

Posts : 588
Join date : 2010-08-29
Location : Hardly Her(e|oic).

View user profile http://www.innocentmachine.com

Back to top Go down

Re: Head Treadmill

Post  Sponsored content


Sponsored content


Back to top Go down

View previous topic View next topic Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum