Friday, 30 November 2018

Google + Content reposting - Mar 18 2015


Digital and Interactive Games 2015, Week 6, Session 1
Boost: www.boost.org

Create empty class – save as library

Use exact same name (A Microsoft quirk – with other IDEs, you don't need to)

Configuration Properties
. Linker
. General
. . Configuration type
. . . Static Library
. . Target Extension
. . . (.lib)

Test – Create New Project
Include it
Configuration Properties
. General
. . Additional Include Directories
. . Use Project level folder – not solution level
. Linker
. . Additional library directory
. . Solution level Debug

#pragma comment (lib, “libraryName, lib”)


#cplusplus   #gamedesign   #gameprogramming   #microsoftquirks   #programming   #tafe  



November 2018 Overall

October Overall: https://fardell24.livejournal.com/328440.html

Engineer and the Time Lady - Ionia in Minecraft: https://fardell24.livejournal.com/328460.html

1st November Writings 2018: https://fardell24.livejournal.com/328796.html

2nd November Writings 2018: https://fardell24.livejournal.com/329135.html

Rise of Weirdness - Part 33: https://fardell24.livejournal.com/329328.html

3rd November Writings 2018: https://fardell24.livejournal.com/329510.html

Church notes - 4th November 2018: https://fardell24.livejournal.com/329970.html

Google + Content reposting Nov 9 2014: https://fardell24.dreamwidth.org/263404.html

4th November 2018 Writings: https://fardell24.dreamwidth.org/263562.html

Doctor Who - The Tsuranga Conundrum Live Reactions: https://fardell24.dreamwidth.org/263851.html

Google + Content reposting Nov 12 2014: https://fardell24.dreamwidth.org/264166.html

5th November 2018 Writings: https://fardell24.dreamwidth.org/264430.html

7th November 2018 Writings: https://fardell24.dreamwidth.org/264654.html

Doctor Who 11.05 'The Tsuranga Conundrum' review: https://fardell24.dreamwidth.org/264792.html

Rise of Weirdness - Part 34: http://fardell24b.tumblr.com/post/179922377510/rise-of-weirdness-part-34

Rise of Weirdness - Stage 6: http://fardell24b.tumblr.com/post/179922523655/rise-of-weirdness-stage-6

9th November 2018 Writings: http://fardell24b.tumblr.com/post/179924517000/9th-november-2018-writings

Google + Content reposting Nov 14 2014: http://fardell24b.tumblr.com/post/179946582945/google-content-reposting-nov-12-2014

Google + Content reposting Nov 15 2014: http://fardell24b.tumblr.com/post/179949273945/google-content-reposting-nov-15-2014

The Engineer and the Time Lady - 1 Page GDD: http://fardell24b.tumblr.com/post/179952449480/the-engineer-and-the-time-lady-1-page-gdd

10th November 2018 Writings: http://fardell24b.tumblr.com/post/179957799220/10th-november-2018-writings

Church notes - 11th November 2018: https://www.deviantart.com/brenorenz/journal/Church-notes-11-November-2018-772116213

Church notes - 11th November 2018 - PM: https://www.deviantart.com/brenorenz/journal/Church-notes-11-November-2018-PM-772130629

Doctor Who - Demons of the Punjab Live Reactions: https://www.deviantart.com/brenorenz/journal/Doctor-Who-Demons-of-the-Punjab-live-reactions-772275174

Rise of Weirdness - Part 35: https://www.deviantart.com/brenorenz/journal/Rise-of-Weirdness-Part-35-772276391

Engineer and the Time Lady - Story Prose v3: https://www.deviantart.com/brenorenz/journal/The-Engineer-and-the-Time-Lady-v3-772280108

11th, 12th November 2018 Writings: https://www.deviantart.com/brenorenz/journal/11th-12th-November-2018-Writings-772281706

Doctor Who 11.06 'Demons of the Punjab' review: https://www.deviantart.com/brenorenz/journal/Doctor-Who-11-06-Demons-of-the-Punjab-review-772547230

Rise of Weirdness - Part 36: https://fardell34.blogspot.com/2018/11/rise-of-weirdness-part-36_15.html

14th, 15th November 2018 Writings: https://fardell34.blogspot.com/2018/11/14th-15th-november-2018-writings.html

16th November 2018 Writings: https://fardell34.blogspot.com/2018/11/16th-november-2018-writings.html

Google + Content reposting Nov 16 2014: https://fardell34.blogspot.com/2018/11/google-content-reposting-nov-16-2014.html

Google + Content reposting Nov 19 2014: https://fardell34.blogspot.com/2018/11/google-content-reposting-nov-19-2014.html

Google + Content reposting Nov 22 2014: https://fardell34.blogspot.com/2018/11/google-content-reposting-nov-22-2014.html

17th November 2018 Writings: https://fardell34.blogspot.com/2018/11/17th-november-2018-writings.html

Church notes - 18th November 2018: https://twitter.com/fardell24/status/1064046497371631618

Rise of Weirdness - Part 37: https://twitter.com/fardell24/status/1064073525185531910

18th November 2018 Writings: https://twitter.com/fardell24/status/1064107163138715648

Doctor Who - Kerblam! live reactions: https://twitter.com/fardell24/status/1064433198250188800

Doctor Who - Kerblam! review: https://twitter.com/fardell24/status/1065045554130956288

Rise of Weirdness - Part 38: https://twitter.com/fardell24/status/1065147411851427841

Bible Study - Philippians 2:12 - 18: https://twitter.com/fardell24/status/1065722522061008896

Google + Content reposting Dec 27 2014 - 1: https://pluspora.com/posts/278466

Google + Content reposting Dec 27 2014 - 2: https://pluspora.com/posts/278495

Google + Content reposting Dec 28 2014: https://pluspora.com/posts/278505

22nd, 23rd November 2018 Writings: https://pluspora.com/posts/279058

Google + Content reposting Dec 29 2014 - 1: https://pluspora.com/posts/282313

Google + Content reposting Dec 29 2014 - 2: https://pluspora.com/posts/282321

Google + Content reposting Feb 5 2015: https://pluspora.com/posts/282335

Church notes - 25th November 2018: https://fardell24.livejournal.com/334706.html

Church notes - November 2018: https://fardell24.dreamwidth.org/268188.html

Church notes in 2018 so far: https://fardell24.dreamwidth.org/268420.html

24th, 25th November 2018 Writings: http://fardell24b.tumblr.com/post/180477051910/24th-25th-november-2018-writings

The Engineer and The Time Lady - Ship Plans v3: http://fardell24b.tumblr.com/post/180566868275/the-engineer-and-the-time-lady-ship-plans-v3

Google + Content reposting Feb 22 2015: http://fardell24b.tumblr.com/post/180581515855/google-content-reposting-feb-22-2015

28 November 2018 Writings: https://www.deviantart.com/brenorenz/journal/28th-November-2018-Writings-774454841

Google + Content reposting Mar 1 2015: https://www.deviantart.com/brenorenz/journal/Google-Content-reposting-Mar-1-2015-774574978

Google + Content reposting Mar 8 2015 -1: https://www.deviantart.com/brenorenz/journal/Google-Content-reposting-Mar-8-2015-1-774575103

Google + Content reposting Mar 8 2015 - 2: https://www.deviantart.com/brenorenz/journal/Google-Content-reposting-Mar-8-2015-2-774575244

Google + Content reposting Mar 16 2015: https://fardell34.blogspot.com/2018/11/google-content-reposting-mar-16-2015.html

29 November 2018 Writings: https://fardell34.blogspot.com/2018/11/29-november-2018-writings.html

Rise of Weirdness - Part 39: https://fardell34.blogspot.com/2018/11/rise-of-weirdness-part-39.html

Doctor Who 11.08 'The Witchfinders' review: https://fardell34.blogspot.com/2018/11/doctor-who-1108-witchfinders-review.html

30 November 2018 Writings: https://fardell34.blogspot.com/2018/11/30th-november-2018-writings.html

November 2018 Writings Overall: https://twitter.com/fardell24/status/1068460734617534465


November 2018 Writings Overall


November Writings 2018



















Overall Total: 3506



30th November 2018 Writings


30th

Excerpt from: Dangers of Lawndale High
Lawndale
It was quiet outside Lawndale High School, as it had been over the Summer Holidays. Claire Defoe smiled as she got out of her car. She wasn't sure why she had taken a job at this school. All of her practicals had been in suburb of Philadelphia or Pittsburgh. Still, she she was graceful for her offer, given that there had hardly been others.

Words: 65


Excerpt from: Artifact in Dubidale

I see,” Ms. Chen said.

Then I went over and tried to close the book. It was then that Sam hit me with it.”

Words: 26


Except from: Weirdness of Dubidale

No one else knew.”

I didn't expect them to.”

Words: 11


Excerpt from: Parallel Journeys
28 December 1874
It was a quiet day. It wouldn't stay that way much larger. Suddenly there was a call of alarm.


Words: 22


Excerpt from: Kiana's Quandry
It was a quiet day in Armidale.
Words: 7


Excerpt from:Freaky Groundhog

The next thing, Bethany. How suspicious was Kira?”

A little. I like, waited until she had gone to breakfast before sneaking into her room. It took me a while to find these clothes,” BethanyDiana answered.

But did she see you before you left?” DianaBethany asked.

BethanyDiana twirled her hair again. “Probably, I saw your Dad be he said that your Mom had already left for work.”

Words: 69


Excerpt from: Intervention against Thanos
“Yes,” Janeway answered. “But this isn't the same.”

“It is the same.” Seven answered “It is obvious that this 'Thanos' has a very similar mindset to what Governor Kodos had.”

Words: 32


Except from: Legacy of Winchester

September 20th, 1958
Evacuations of the areas close to the school begin...

November 30th, 1958
Reports of 'strangeness' in northern Virginia are brought to Eisenhower's attention.

January 1, 1959
President Eisenhower receives a report that at least 200 people living in the DC urban area have 'powers'.

January 2, 1959
In Winchester, it is announced that a new school would be built by the next year.


Words: 66

Total: 298



Doctor Who 11.08 'The Witchfinders' review


Doctor Who 11.08 'The Witchfinders' review
The eighth episode of Series 11. Team TARDIS lands in early 17th Century Lancashire, where they find a village where Witch Trials are taking place. But there is a lot more going on than there first appear. A landowner who has 'duncked' 36 people, and King James VI/I. And for the first time, the Doctor is really up against sexism. The Doctor insisting on non-interference is consistent, but she quickly finds that something is wrong. Something is causing the witch hunt to be out of proportion for the time.
The Doctor trying to save Willa's (and Becka's) grandmother after the 'dunking' was very good, and consistent with her character. She is more compassionate than her previous selves. (Some of her previous selves would have done it also, but others would have left it up to their companions to do so.) The use of the psychic paper, to pass off Team TARDIS as witchfinders, was also a good choice. But King James would come in and ruin that idea. (Are you forgetting your immediate predecessor, as Monarch of England, James?)
However, His Majesty's characterisation is well set up in these introductory scenes. It certainly matches what I knew about the real King James. This is where the sexism comes in. The Doctor is put off by having to put Graham in charge as Chief Witchfinder. The various investigations that ensue from this encounter are handled rather well. Especially where Yas tries to encourage Willa to overcome her anxiety (by telling her about an experience with a bully). These disparate plots all lead to the revelation of the Morax...
That Bekka was the one who released them from their prison was a surprise, but the set up through the episode was well done. It didn't come out of thin air. The Doctor confronting Bekka about it was quite effective, and her escape from her 'dunking' was very Doctor-ish (including the lesson from Houdini during that very wet weekend). The explanation of the Morax and the role of the tree, was rather effective, as was the method of combating them. It was a very effective way to conclude the story.
The Doctor quoting Clarke's Third Law was a very good ending to the episode. 8.25/10.





Rise of Weirdness - Part 39


January 9, 2007:
Vampire lord Corneliu Vadim Tudor launches the "Identity, Tradition, Sovereignty" campaign in Bucharest, flaunting his power against the United Nations,...


February 11, 2007
In Lima, Peru, President Alberto Fujimori receives a report that the Peoples Agreement nations are suspected of supporting pro-socialist protests in Cuzco and other eastern cities.


March 1, 2007:
World Council of Churches (WCC) in Geneva, Switzerland condemns the GOP promotion of Kahane Chai, sparking international attention and concern,....

March 26, 2007:
Yogyakarta Principles are ratified by the United Nations, promoting Transformed rights and protections, but is struck down due to the opposition of religious and social conservatives led by Iran, Yemen and Nigeria,...


April 16, 2007:
Palm Beach State College kills 33 college students using spontaneous combustion spells....


April 27, 2007:
Baltic Crackdown; Soviet military forces are deployed into Lithuania, Estonia, and Latvia, cracking down on alleged "counter-revolutionary elements" throughout the region, with G-8 leaders threatening to launch economic sanctions,.....


May 9, 2007
The Vampires in Windsor, Ontario take over one of the city's morgues...


June 26, 2007:
Cyberjaya, Malaysia emerges as one of the largest cities to launch into space, sparking international attention,....


June 27, 2007:
Anti-Semitic riots erupt in Krakow, Poland, fueling political and religious tensions across Eastern Europe,...

July 11, 2007:
Srebrenica Masacre; Serbian officials shatter the San Francisco Accords, in an effort to seize control of the Visoko Pyramid and the Bosnia-Hercegovina, backed by the Soviet Union, sparking international condemnation and concern,....


July 16, 2007:
Governor Sarah Palin (R-AK) announces her support for the Zionist movement, during a rally in Wasilla, sparking tensions wwith the Anglo-French Union,...


August 23, 2007:
"You Don't Love Me" single by Starlee Kine makes its hit musical debut in New York City, New York,...

September 10, 2007
A Pagan Pride celebration is held in Barrow, Alaska.


October 13, 2007
A Pagan Pride celebration is held in Nome, Alaska.


November 17, 2007
Kahane Chai controversially claims that the World Council of Churches is anti-semitic...


February 18, 2008:
How to Be Bland (ITV) Anglo-French Union series starring Tamara Hill, Daniel Fieldman and Janice Wells features Transformed friends living in Bristol, trying to "pass",...


February 28, 2008:
Berlag Uprising; Siberian gulag of Beregovoy launches an armed uprising, launching an exodus into space, fueling anti-Transformed sentiment by the government,...

March 21, 2008:
President Nicholas Sarkozy proclaims that the "Metz Effect" (ME) weapons would be an effective deterrent against the Soviet Union and the threat of terrorism nationwide,....


May 5, 2010:
Cazin, Bosnia-Hercegovina secedes from Bosnia, entering into the "Greater Exodus" into Offworlder space, triggering civil unrest and panic in the Balkans.


May 7, 2008:
Saudi Arabian officials announce a crackdown on suspected witches starting in Riyadh, actively burning women at the stake, fueling international condemnation and concern as thousands attempt to flee to Offworlder colonies and the State of Aphrodite,....


May 12, 2008:
Cuban President Rafael E. Cruz demands the United States and North American nations to unite against the socialist bloc of Latin America,...


August 7, 2008:
Abkhazia Crackdown; Soviet troops launch a brutal crackdon on Georgia SSR, citing violence in Abkhaazia,...


September 27, 2008:
Second Salt Lake City Riots; Alaskan Jewish leaders clash with the Mormon Church of Latter-day Saints over the issue of posthumous baptism of Holocaust victims, triggering calls for the deployment of the National Guard,....



October 1, 2008:
Russian expatriate "Boriska" establishes a religious movement at Lavochkin, Mars proclaiming Mars as a "new holy land",....

October 22, 2008:
Chinese President Lee Teng-hui announces that it will aid the United States and Anglo-French Union in Offworld affairs, during a political summit in Strasbourg,.




Thursday, 29 November 2018

29 November 2018 Writings


29th

Excerpt from: Doctor Who: Changes in Time and Space
Tegan served some tea to Felica and then sat down next to the Doctor. “You said you travel with a future Doctor?” She asked.

“Yes,” Felicia answered guardedly.

Words: 29


Excerpt from: The Engineer and the Time Lady
Code Sequence confirmed. Command of USS Ionia NCC 84401 is transferred to Emergency Engineering Hologram Alpha.”

Alpha was conflicted. She either had no time, or all the time in the world. She decided to indulge herself and sat in the command chair. She had repaired the viewscreen earlier, but she wasn't sure that the external sensors were working. All she could see through the window was the night sky. “Forward view,” she commanded.

Affirmative,” the computer responded. The screen then showed a forest at night time.

“A forest,” she considered. But exploration would have to wait. The ship still needed repairs.


Words: 104


Excerpt from: Legacy of Winchester
September 19th, 1958
As civil unrest ensues in Winchester, the National Guard moves in to secure the area around the School.


October 29th, 1958
Strangeness similar to that seen in Winchester is noted near the Maryland/Delaware border...


December 29th 1958
President Eisenhower receives a report that at least 20 people living in DC have 'powers'.


January 1, 1959
Laura Neverton is seen in Coumbus, Ohio...

Words: 65

Excerpt from: Star Trek: Questing Mystery
USS Enterprise NCC 1701
Captain's Log: Stardate 6211.5 The Enterprise is approaching the source of the mysterious signal...

Words: 18

Total: 216



Google + Content reposting Mar 16 2015


Digital and Interactive Games 2015, Week 5, Session 2
Configuration files

<a href="http://s483.photobucket.com/user/Brenorenz/media/TestSetup3_zpsnjspoxeq.png.html" target="_blank"><img src="http://i483.photobucket.com/albums/rr193/Brenorenz/TestSetup3_zpsnjspoxeq.png" border="0" alt="testSetup3 photo TestSetup3_zpsnjspoxeq.png"/></a>
http://i483.photobucket.com/albums/rr193/Brenorenz/TestSetup3_zpsnjspoxeq.png

Create new project
    NewFileExample




String
find, subst, stoi


threading
#include <thread>

std::thread(______, std::string)


#cplusplus   #gamedesign   #gameprogramming   #programming   #tafe  






Google + Content reposting - Mar 8 2015 - 2


Digital and Interactive Games 2015 – Week 4, Session 2
Vector of Vectors
#include <vector>
#include <iostream>

int main() {
    std::vector<int> aVector;
    std::vector<std::vector<int>> aVectorOfVector;
    // First lot of vector
    for (auto i = 0; i != 10; ++i)
        aVector.push_back(i);
    aVectorOfVector.push_back(aVector);
    // Second lot
    aVector.clear();
    for (auto i = 0; i != 10; ++i)
        aVector.push_back(i + 20);
    aVectorOfVector.push_back(aVector);
    for (auto v ; aVectorOfVector) {
        for (auto i; v)
            std::cout << i << “ ”;
        std::cout << std::endl;
    }
    return 0;
}

Access linker subsystem VS2013
Project
    'Project Name' Properties


#cplusplus   #gamedesign   #gameprogramming   #programming   #tafe  





Google + Content reposting Mar 8 2015 - 1


Digital and Interactive Games 2015 – Week 4, Session 1
7.1 – 7.4 C++ Primer

map <string, int> myMap;

myMap[“Hero”] = 1;

string        int
“Hero”        1

deckOfCards myDeck;


Q2
    → myDeck.print();

Q3
    → myDeck.shuffle();

Implementing Classes
A single card can be representing in a single struct.

Struct card {
    int suitOrder;
    int valueOrder;
    std::string suitDisplay;
    std::string valueOrder;
};

One way to set up a pack of cards

// Initialise the pack of cards
std::vector <std::string> suit{ “club”, “diamond”, “heart”, “spade” };
std::map<std::string, int> suitOrder;
for (auto i = 0; i != suit.size(); i++;) {
    suitOrder[suit[i]] = i + 1;
}
std::vector<std::string> value{“2”, “3”, “4”, “5”, “6”, “7”, “8”, “9”, “10”, “J”, “Q”, “K”, A”};
std::map<std::string, int> valueOrder;
for (auto i = 0; i != value.size(); ++i) {
    valueOrder [value[i]] = i + 1;
}

Then you can loop through it.

std::vector<card> packOfCards;
for (auto i = 0; i != value.size(); ++i) {
    for (auto j = 0; j != suit.size(); j++;) {
        packOfCards.push_back({suitOrder[suit[i]], value[i], suit[i], suit[i])});
    }
}

If done as above, if you want to change the order of suit or value, only the initial list need be manipulated.


Assertion failed.
Expression: vector subscript out of range


#cplusplus   #gamedesign   #gameprogramming   #programming   #tafe  





Google + Content reposting Mar 1 2015


Digital and Interactive Games 2015 - Week 3, Session 2
#include <iostream>
#include <string>
...

svc_install
P@$$w0rd


Initialization List

type fName(_ _ _ _ _ _ _ _ _ _)
    C++ Primer Ch 6.

New Project Initialiser List

#include <initializer_list>
using std::initializer_list;
void Messager (initializer_list<string> m) {
    for (auto beg = m.begin(); beg != m.end(); ++beg) {

...

...
.begin() - returns an iterator.

cout << *beg << std::endl;


In main
    std::initializer_list<string>, myList {"List 1", "List 2", "List 3"};

card game

52 cards
...

...

Two properties for each card.
The suite and the value

int suitRank;
int valueRank;
string suiteDisplay;
string valueDisplay;
1 Create Card
2 Create vector <card>
3 Initialise the vector to a full pack of cards.
4 Print them in the order.

function for each card.

Create card by vector

vector <string> card1;

vector <string> card1 = { "1", "1", "Clubs", "Ace" }:

beg = m.begin() (1) (2) (3) (4) (Type) <T>

#cplusplus   #gamedesign   #gameprogramming   #progamming #tafe  





Wednesday, 28 November 2018

28th November 2018 Writings


28th

Excerpt from: Daria: Mysteries of Lawndale – Night of the Coffee House
They watched the first video, pausing occasionally to allow Jane to sketch. (And sometimes rewinding, so she could catch something she may have missed earlier.)


Looks like they were prepared,” Jane said, looking over her first set of sketches.

Words: 40

Excerpt from: Legacy of Winchester – Collaborative Timeline
Legacy of Winchester
There had always been weirdness, which science couldn't explain. It was thought that it had disappeared in the early 20th Century, but it wasn't so. Little did anyone know, that an action by a bullied American teenager was going to change everything...


September 18th, 1958:
Winchester Tragedy. A young witch named Laura Neverton, after taunting by bullies, releases a massive burst of magical energy. The resulting explosion destroys half of Winchester High School (Winchester, Maryland), causing massive casualties (up to 100 dead). Laura herself survives, and flees the town in terror. The area around the school (up to four blocks away) is affected by the release of energy, creating strangeness that would be noted by nightfall.

Words: 119


Excerpt from: The Engineer and the Time Lady
The Mark 9 EMH, resembling a young female Vulcan appeared. “Please state the nature of the medical emergency.”

“Not an emergency,” Alpha said. “The Starship Preservation Protocol has been activated.”

“Emergency Engineering Hologram Alpha?” the EMH asked.

“Yes,” Alpha answered.

“Of course.”

“I have brought remains from the Bridge to sickbay.”

“I shall scan them,” the EMH said.


“Confirmed,” the EMH stated. “The remains are of Commander Theodore James Emerson.”

Alpha took the PADD from the EMH. “But then, that wasn't in doubt.”

“You know what to do,” the EMH said.

“I just wanted to repair the ship,” Alpha groused as she left the sickbay through the starboard door, towards the Bridge.

The EMH sighed. “Computer, deactivate EMH.”


Alpha entered the Bridge and placed the PADD on the command console. “Deceased status of Commander Theodore James Emerson confirmed.

“Confirmed,” Alpha said. She input a sequence of numbers on the command console.

Words: 161

Total: 320



Google + Content reposting Feb 22 2015


Digital and Interactive Games 2015 – Week 2, Session 2

void Infantry

putItem (slotNumber, GameObject) {

Inventory myInventory;
    myInventory.putItem(1, anAxe);
    myInventory.putItem(2, myFood);

void Inventory::putItem(slotNumber, GameItem) {
    switch(slotNumber) {
        case 1:
            slot1 = theItem;
            break;
        case 2:
            slot2 = theItem;
            break;
        etc
    }
}


put Item (slotNumber, GameObject) {
    switch (slotNumber) {
        case 1:
            break
    }
}

GameItem Inventory::takeItem (int, slotNumber) {
    return;
}

GameItem takeItem(int slotNumber)

    return slot1;


GameItem Inventory::takeItem (int slotNumber)
    if (slotNumber == 1)
        return slot1;
}

How to check if the slot is taken.





Inventory.h
public:
    Inventory();
    ~Inventory();
    void putItem (int, gameItem);
    GameItem takeItem(int);
    bool isEmptySlot;

Inventory.cpp
bool Inventory::isEmptySlot (int, slotNumber) {
    if (slotNumber == 1) {
        slot1
        return;
    }
}

GameItem.h
class GameItem
    string itemType;
    int itemAmount;
    bool bIsEmpty { true };
public:
    GameItem();
    ~GameItem();
    void setItemType(int);
    string getItemType();
    bool isEmpty();
};


GameItem myWeapon;
–    myWeapon.setItemType(2);

GameItem.cppp

bIsEmpty = false;
    switch (ItemTypeNumber) {

string GameItem::getItemType() {
    return ItemType;

bool GameItem::isEmpty() {
    return bIsEmpty;
}

Inventory.cpp
bool Inventory::isEmptySlot (int slotNumber) {
    bool bEmpty { false };
    if (slotNumber == 1) {
        bEmpty = slot1, isEmpty())
    }
    return bEmpty;
}

C++ Primer – Chapter 3

New Project – stringExperiment

int main() {
    string firstString;

    return 0;
}

string from C++ Standard Library
–    not the string from C

using std::string
using std::cout

int main() {
    string firstString; // default initialisation

    cout << firstString

    system(“pause”)
    return 0;
}

String can be seen as characters

<code>
#include <iostream>
#include <string>
using std::string;
using std::cin;
using std::cout;
using std::endl;

int main() {
    string firstString; // default initialisation
    string secondString { “This is a string” };
    string thirdString [10, '#'];

    cout << firstString << endl;
    cout << secondString << endl;
    cout << thirdString << endl;

    cin >> firstString;
    cout << firstString << endl;

    system(“pause”);
    return 0;
}
</code>
a while loop

while (std::getline(cin, firstString)) {
    if (firstString = “exit”) break;
        cout << firstString << endl;
}

Basis for the main loop of the text version of the game.

Complete code here:

<code>
#include <iostream>
#include <string>
using std::string;
using std::cin;
using std::cout;
using std::endl;

int main() {
    string firstString; // default initialisation
    string secondString { “This is a string” };
    string thirdString [10, '#'];

    cout << firstString << endl;
    cout << secondString << endl;
    cout << thirdString << endl;

    cin >> firstString;
    while (std::getline(cin, firstString)) {
        if (firstString = “exit”) break;
            cout << firstString << endl;
    }

    system(“pause”);
    return 0;
}
</code>

Place Commands in the loop

cout << “Command: “;

Complete code here:

<code>
#include <iostream>
#include <string>
using std::string;
using std::cin;
using std::cout;
using std::endl;

int main() {
    string firstString; // default initialisation
    string secondString { “This is a string” };
    string thirdString [10, '#'];

    cout << firstString << endl;
    cout << secondString << endl;
    cout << thirdString << endl;

    cin >> firstString;
    while (std::getline(cin, firstString)) {
        if (firstString = “exit”) break;
            cout << firstString << endl;
        cout << “Command: “;
    }

    system(“pause”);
    return 0;
}
</code>

beneath break point”

if (!firstString.empty()) {
    cout << firstString << endl;
    cout << “Command ”;
}

Complete code here:

<code>
#include <iostream>
#include <string>
using std::string;
using std::cin;
using std::cout;
using std::endl;

int main() {
    string firstString; // default initialisation
    string secondString { “This is a string” };
    string thirdString [10, '#'];

    cout << firstString << endl;
    cout << secondString << endl;
    cout << thirdString << endl;

    cin >> firstString;
    while (std::getline(cin, firstString)) {
        if (firstString = “exit”) break;
        if (!firstString.empty()) {
            cout << firstString << endl;
            cout << “Command ”;
        }

            cout << firstString << endl;
        cout << “Command: “;
    }

    system(“pause”);
    return 0;
}
</code>


Text comparison is case sensitive


Manipulating strings

beneath cout << firstString << endl;

for (auto c: firstString )
    cout << c << “ ” << endl;

Complete code here:

<code>
#include <iostream>
#include <string>
using std::string;
using std::cin;
using std::cout;
using std::endl;

int main() {
    string firstString; // default initialisation
    string secondString { “This is a string” };
    string thirdString [10, '#'];

    cout << firstString << endl;
    cout << secondString << endl;
    cout << thirdString << endl;

    cin >> firstString;
    while (std::getline(cin, firstString)) {
        if (firstString = “exit”) break;
        if (!firstString.empty()) {
            cout << firstString << endl;
            for (auto c: firstString )
                cout << c << “ ” << endl;
            cout << “Command ”;
        }

            cout << firstString << endl;
        cout << “Command: “;
    }

    system(“pause”);
    return 0;
}
</code>

In for loop, comment out existing line and add block.

c = toupper(c);
cout << c;

Complete code here:

<code>
#include <iostream>
#include <string>
using std::string;
using std::cin;
using std::cout;
using std::endl;

int main() {
    string firstString; // default initialisation
    string secondString { “This is a string” };
    string thirdString [10, '#'];

    cout << firstString << endl;
    cout << secondString << endl;
    cout << thirdString << endl;

    cin >> firstString;
    while (std::getline(cin, firstString)) {
        if (firstString = “exit”) break;
        if (!firstString.empty()) {
            cout << firstString << endl;
            for (auto c: firstString ) {
                // cout << c << “ ” << endl;
                c = toupper(c);
                cout << c;
            }
              
            cout << “Command ”;
        }

            cout << firstString << endl;
        cout << “Command: “;
    }

    system(“pause”);
    return 0;
}
</code>


Size of string
(below for loop)

cout << endl;
cout << firstString.size() << endl;


Vector

New Project – Vector experiment

Not a type.
–    It's a class template.

#include <iostream>
#include <vector>
using std::vector;

int main () {
    return 0;
}

Not a type
We need to supply a type.

Int main () {
    vector <int> first vector:

    return 0;
}

firstVector → Nothing, it's pointing to nothing.


Vector <int> firstVector;
firstVector.push_back(10);

The integer is pushed to the back of the vector

firstVector.push_back(10);
firstVector.push_back(5);


using std::vector
using std::cout
using std::endl;

int main() {
    vector <int> firstVector;
    firstVector.push_back(10)
    firstVector.push_back(5);

    cout << firstVector[0] << endl;

    return 0;
}


cout << firstVector[0] << endl;

for (auto anInt; firstVector) {
    cout << anInt << endl;
}

Vector – one of the most efficient tools in C++

(for loop)

vector <int> slotAmount  { 0, 0, 0, 0, 0, 0, 0, 0 };


More ways to initialise vector


vector <int> slotAmount { 0, 0, 0, 0, 0 , 0, 0, 0 }'
vector <int> slotAmount2 (8, 0);

cout << slotAmount, size() << endl;


Reopen GameItem

Inventory.h

#define INVENTORY_H
#include <vector>
#include “GameItem.h”

class Inventory() {
    std::vector <GameItem> slotItem;

}

Inventory.cpp

Inventory::Inventory()
{
    GameItem anItem;
    slotItem.push_back(anItem);
}


for loop
GameItem anItem;
for (auto i = 0; i != 0; i++)
    slot.push_back(anItem);


// put an item into a slot
// slot number from 1 – 7
void Inventory::putItem(int slotNumber, GameItem) {
    slotItem[slotNumber] = theItem;
}

bool Inventory::isEmptySlot(int slotNumber) {
    return slotItem[slotNumber].isEmpty();
}

main.cpp

#include “hero.h”
#include “Inventory.h”

int main() {
    Inventory myInventory();
    return 0;
}

myInventory.putItem(0, anItem);



Inventory.cpp

#include <iostream>

voidInventory::putItem(int slotNumber, GameItem) {
    std::cout << “putting ”;
    std::cout << theItem.getItemType();
    std::cout << “ into slot ”;
    std::cout << slotNumber”
    std::cout << std::endl;
    slotItem[slotNumber] = theItem;

Should be commented out in production version.


Main.cpp

anItem.getItemType(2);
myInventory.putItem(1, anItem);

#cplusplus #gamedesign #gameprogramming #programming   #tafe  





Tuesday, 27 November 2018

The Engineer and the Time Lady - Ship Plans v3

Ship plans v3
USS Ionia NCC 89401 - Saaristomeri class Marine Survey Ship.

Launched 2385

Length: 70m
Width: 50m
Height: 12m
Decks: 2
Warp cruise speed: 6
Maximum warp: 9.3


Sunday, 25 November 2018

24th, 25th November 2018 Writings


24th, 25th

Excerpt from: Questions of Reality
48946 files found,” Wendy said with annoyance. She wasn't sure what she called the relevant files. But it had to be in one of the archive folders...


Irving and Langford had returned to the station...


Words: 36

Excerpt from: Doctor Who: Changes in Time and Space
“Shakespeare...” she considered.


“Will, there is someone to see you.”

“Send her in,” Will said.

A young woman entered. “Mr. Shakespeare?”

“No, you can't have an autograph!”

“It's not that,” the young woman said. “I'm here to ask about Love's Labours Won.”

“Whatever you have heard, it's been exaggerated.”

“And not just about the play, but the man who tried to stop it being performed.”

Will paused. “No.”

“No?”

“Not yet,” Will said.

“I can wait,” the woman said, with a look of anxiety on her face.

“I'll finish this scene, then I'll answer your questions.”


Words: 107

Total: 153



Saturday, 24 November 2018

Church notes in 2018 so far

January: http://fardell24b.tumblr.com/post/170213533805/church-notes-january-2018

February: http://fardell24b.tumblr.com/post/171257524885/church-notes-february-2018

March: http://fardell24b.tumblr.com/post/172404215310/church-notes-march-2018, https://brenorenz.deviantart.com/journal/Church-notes-March-2018-737924254

April: http://fardell24b.tumblr.com/post/173407301760/church-notes-april-2018, https://brenorenz.deviantart.com/journal/Church-notes-April-2018-742609330

May: http://fardell24b.tumblr.com/post/174294714720/church-notes-may-2018

June: http://fardell24b.tumblr.com/post/175194220400/church-notes-june-2018, https://brenorenz.deviantart.com/journal/Church-notes-June-2018-751239821

July: http://fardell24b.tumblr.com/post/176396549455/church-notes-july-2018, https://www.deviantart.com/brenorenz/journal/Church-notes-July-2018-756804003

August: http://fardell24b.tumblr.com/post/177403642370/church-notes-august-2018

September: http://fardell24b.tumblr.com/post/178596021635/church-notes-september-2018, https://www.deviantart.com/brenorenz/journal/Church-notes-September-2018-766153752

October: http://fardell24b.tumblr.com/post/179510030195/church-notes-october-2018

November: http://fardell24b.tumblr.com/post/180473134620/church-notes-november-2018


Church notes - November 2018


On LiveJournal: https://fardell24.livejournal.com/334865.html

On Dreamwidth: https://fardell24.dreamwidth.org/268188.html


Church notes - 25th November 2018

25th November
Philippians 4:2 - 8

Ephesians 5:21 - 33

Baptist Care - stories from domestic violence survivors

Marriage
Kindness
Generosity
Affirmation
Moments of connection
Request for connection

Unhappy marriages - looking for flaws in their partner.

Ephesians 5:21 - 33
'Submit' can be offensive
The passage can also be missued as a weapon of control.
Greek word meaning 'To place in order'.

Galatians 3:28
We're all one in Christ
We need relationship
Christ - servant and friend

vs 23 - 24 - Not a chain of command.
Concept of headship. To be modelled on the relationship of Christ to the church.

Luke 22:25, 26

vs 25 - 27
We need to be patient with our spouses. Again, modelling the love of Christ.
vs 33
Husband's greatest need: Respect
Wife's greatest need: Love

Crazy Cycle
Disrespect leads to unloving behaviour
Feeling unloved leads to disrespectful behaviour.

Love
Kindness, Compassion

1 Corinthians 13:6 -8
All about action
Paul wrote it about life in the Church.

Respect
Recognition of someone's worth
Being truthful

Both should help the other grow.


Friday, 23 November 2018

Google + Content reposting - Feb 5 2015


Beta request
Title: The Many Doctors II: Twelve and the Stargate - Chapter 4: Loose Ends
Fandoms: Doctor Who, Stargate SG1
Rating: K

The Twelfth Doctor has rescued SG1 and his companions from Adria. But as he returns to the SGC he must contend with General Landry, as well as what to do with his companion whom had travelled back to his version of the TARDIS from the Thirteenth's version.

Characters: Twelfth Doctor, OC Companions, Daniel Jackson, Cameron Mitchell, Samantha Carter, Teal'c, Vala Mal Doran

Time setting: For SG1; early 10th Season, For the Doctor; sometime after Clara stops travelling with him, but before he regenerates.

Previous installments: https://www.fanfiction.net/s/9716286/1/The-Many-Doctors-II-Twelve-and-the-Stargate

#betarequest   #doctorwho   #fanfiction   #sg1   #stargate  

- - -
Note: request was fulfilled...



Google + Content reposting Dec 29 2014 - 2