prototype4's Profile
Reputation: 0
Apprentice
- Group:
- Members
- Active Posts:
- 36 (0.17 per day)
- Joined:
- 22-October 12
- Profile Views:
- 1,501
- Last Active:
May 20 2013 06:14 AM- Currently:
- Offline
Previous Fields
- Country:
- US
- OS Preference:
- Windows
- Favorite Browser:
- Chrome
- Favorite Processor:
- Intel
- Favorite Gaming Platform:
- XBox
- Your Car:
- Who Cares
- Dream Kudos:
- 0
Posts I've Made
-
In Topic: Someone wanna give me a head start here?
Posted 9 Apr 2013
Lemur, on 08 April 2013 - 07:34 PM, said:If you can't find a place to start, you need to remember the sacred art of google-fu. If you have specific questions we'd love to help, but in all seriousness you should find this type of thing yourself. This almost constitutes a topic that would be locked, just by the sheer lack of effort in doing any research.
I actually did look, but i was confused by some of the stuff i read so i figured someone could show me something like a complete idiots guide to ruby. I have been searching for the last week and have nothing that i seem to understand. I sorry is i didn't specifiy before. -
In Topic: How do i use the publish option in the properties menu of a project?
Posted 8 Jan 2013
thank you, i will read the article but, and i hope i dont sound unintelligent, i have not even a shred of a clue what you were saying. i think it would have helped if i had posted that i am a novice programmer. but thank you none the less. -
In Topic: Function Manipulation Problem
Posted 30 Nov 2012
here is my latest problem, mostly i need some one to look over it and fix it if need be.
battle simulator header file w/ cpp
/* * simulator.h */ #ifndef SIMULATOR_H #define SIMULATOR_H void player_attack(int &); void player_defend(int &); void player_special(int &); void enemy_attack(int &); void enemy_defend(int &); void enemy_special(int &); #endif
/* * simulator.cpp */ #include "simulator.h" void player_attack(int &enemy_health, int &enemy_shield) { enemy_health -=10; enemy_shield -=5; } void player_defend(int &player_health, int &player_shield) { player_health +=10; player_shield +=5; } void player_special(int &enemy_health, int &enemy_shield) { enemy_health -=20; enemy_shield -=10; } void enemy_attack(int &player_health, int &player_shield) { player_health -=10; player_shield -=5; } void enemy_defend(int &enemy_health, int &enemy_shield) { enemy_health +=10; enemy_shield +=5; } void player_special(int &player_health, int &player_shield) { player_health -=20; player_shield -=10; }
enemy class header w/ cpp
// Header File: enemy_class.h #ifndef ENEMY_CLASS_H #define ENEMY_CLASS_H class Enemy { public: int getm_enemyhealth(void); void setm_enemyhealth(int); int getm_enemyshield(void); void setm_enemyshield(int); private: int m_enemyhealth; int m_enemyshield; }; #endif
// soldier_class.cpp #include <iostream> #include "enemy_class.h" using namespace std; int Enemy::getm_enemyhealth(void) { return m_enemyhealth; } void Enemy::setm_enemyhealth(int input) { m_enemyhealth = input; } int Enemy::getm_enemyshield(void) { return m_enemyshield; } void Enemy::setm_enemyshield(int input) { m_enemyshield = input; }
player class header w/ cpp
// Header File: soldier_class.h #ifndef SOLDIER_CLASS_H #define SOLDIER_CLASS_H class Soldier { public: int getm_playerhealth(void); void setm_playerhealth(int); int getm_playershield(void); void setm_playershield(int); private: int m_playerhealth; int m_playershield; }; #endif
// soldier_class.cpp #include "soldier_class.h" int Soldier::getm_playerhealth(void) { return m_playerhealth; } void Soldier::setm_playerhealth(int input) { m_playerhealth = input; } int Soldier::getm_playershield(void) { return m_playershield; } void Soldier::setm_playershield(int input) { m_playershield = input; }
items inventory header w/ cpp
/* * item_inventory.h */ #ifndef ITEM_INVENTORY_H #define ITEM_INVENTORY_H #include<iostream> #include<string> #include<vector> vector<string>player_inventory; item_inventory.pushback("Item 1"); item_invenotry.pushback("Item 2"); item_inventory.pushback("Item 3"); #endif
/* * simulator.cpp */ #include "item_inventory.h" #include<iostream> // // TODO: Place some kind of code here... //
warfare main cpp
/* * gametime.cpp */ #include "simulator.h" #include "soldier_class.h" #include "enemy_class.h" #include "item_inventory.h" #include <iostream> #include <string> #include <vector> int main(void) { // // TODO: place code here.. // system("PAUSE"); return 0; }
please take your time. i am in now hurry for an answer. -
In Topic: Function Manipulation Problem
Posted 29 Nov 2012
the current code is in the first post made by nstrydom. -
In Topic: Function Manipulation Problem
Posted 29 Nov 2012
the current code in in the first post by nstrydom.
My Information
- Member Title:
- New D.I.C Head
- Age:
- 17 years old
- Birthday:
- June 16, 1995
- Gender:
-
- Location:
- USA
- Interests:
- Gaming, Programming, having fun with both.
- Full Name:
- Eugene Robert Petrie
- Years Programming:
- 2
- Programming Languages:
-
C++
C#
ASP.NET
HTML
Contact Information
- E-mail:
- Private
|
|


Find Topics
Find Posts
View Reputation Given


|
Comments
prototype4 has no profile comments yet. Why not say hello?