Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026 #pragma once
00027 #ifndef __PROFILE_H__
00028 #define __PROFILE_H__
00029
00030 #include <cstring>
00031 #include <vector>
00032
00033 #include "defines_Powerup.h"
00034 #include "defines_Player.h"
00035
00036 using std::vector;
00037
00038
00039 struct Profile
00040 {
00041 Profile() : isPowerupEnabled(g_totalPowerups, true),
00042 maxLines(DEFAULT_MAX_PLAYLINES),
00043 attackRate(DEFAULT_ATTACK_RATE),
00044 powerupRate(DEFAULT_POWERUP_RATE)
00045 {
00046 memset(powerupStartQueue, POWERUP_ID_NONE, sizeof(powerupStartQueue));
00047 }
00048
00049 Profile(const Profile &profile) :
00050 isPowerupEnabled(profile.isPowerupEnabled),
00051 maxLines(profile.maxLines),
00052 attackRate(profile.attackRate),
00053 powerupRate(profile.powerupRate)
00054 {
00055 memcpy(powerupStartQueue, profile.powerupStartQueue, sizeof(powerupStartQueue));
00056 }
00057
00058 vector<bool> isPowerupEnabled;
00059 PowerupId powerupStartQueue[MAX_ACQUIRED_POWERUPS];
00060 u16 maxLines;
00061 u16 attackRate;
00062 u8 powerupRate;
00063 };
00064
00065 #endif // __PROFILE_H__