//---------------------------------------------------------------------------------------
// デバイス、リソース初期化
//---------------------------------------------------------------------------------------
bool CTitleScene::Initialize(CGraphics* pGraph) {
	
	//-------- ゲーム用オブジェクトの初期化
	InitObj();

	return true;
}
Beispiel #2
0
void CXtObjPool::EmployChunk( xt_poolchk_node_t *pNewChunk )
{
	if ( m_pMemChunkList )
	{
		/* Link new chunk to tail of chunk list */
		xt_poolchk_node_t* pCurChunk = m_pMemChunkList;
		while( pCurChunk->next != NULL )
		{
			pCurChunk = pCurChunk->next;
		}
		pCurChunk->next = pNewChunk;
		++m_nChunkCount;
	}
	else /*( m_pMemChunkList == NULL )*/
	{
		m_pMemChunkList = pNewChunk;
		m_nChunkCount = 1;
	}

	xt_size_t i = 0;
	for ( i=0; i<pNewChunk->pool_chunk.count; ++i )
	{
		m_ObjHndBuf.handle_arr[i+m_nRealCapacity] = (pNewChunk->pool_chunk.buf + m_nObjSize*i);
		InitObj( m_ObjHndBuf.handle_arr[i+m_nRealCapacity] );
	}

	m_nRealCapacity += pNewChunk->pool_chunk.count;

	return;
}
Beispiel #3
0
CBuff::CBuff(CBuffData *data)
{
	BuffData = data;
	ResourceName = data->ResourceName + "_1.png";
	DownLoadType = 2;
	InitObj();
}
//---------------------------------------------------------------------------------------
// デバイス、リソース初期化
//---------------------------------------------------------------------------------------
bool CSceneBase::Initialize(CGraphics* pGraph) {
	m_pGraph = pGraph;

	//-------- ゲーム用オブジェクトの初期化
	InitObj();

	return true;
}
Beispiel #5
0
int  main()
/*********/

{
    char                *cmd;
    void               (*parse_object)( void );

#if defined( _M_I86SM ) || defined( _M_I86MM )
    _heapgrow();    /* grow the near heap */
#endif
    if( !MsgInit() ) return( EXIT_FAILURE );
    cmd = AllocMem( CMD_LINE_SIZE );
    getcmd( cmd );
    InitOutput();
    initOptions();
    parseOptions( cmd );
    openFiles();
    InitObj();
    parse_object = InitORL() ? ParseObjectORL : ParseObjectOMF;
    for( ;; ) {
        InitTables();
        ModNameORL = rootName;
        parse_object();
        if( Mod == NULL ) {
            break;
        }
        if( srcReqd ) {
            if( SrcName == NULL ) {
                if( CommentName != NULL ) {
                    SrcName = CommentName;
                } else if( Mod->name != NULL ) {
                    SrcName = Mod->name;
                } else {
                    SrcName = rootName;
                }
            }
            OpenSource();
        }
        DisAssemble();
        if( Source != NULL ) {
            CloseTxt( Source );
        }
        SrcName = NULL;         /* if another module, get name from obj file */
    }
    if( UseORL ) FiniORL();
    CloseBin( ObjFile );
    CloseTxt( Output );
    MsgFini();
    return( 0 );
}
Beispiel #6
0
int InitSubSystems( void )
{
    if( !setjmp( Env ) ) {
        InitMem();
        InitLibIo();
        InitInputLibs();
        InitMsg( );
//      InitCmdLine();      // JBS 99/07/09 moved below
        InitFileTab();
        InitObj();
        return( EXIT_SUCCESS );
    } else {
        return( EXIT_FAILURE );
    }
}
Beispiel #7
0
BOOL QSQL_DEF::SelObj		/* ---- Select Object ------------------- */
( HWND                  hDlg,           // window handle
  OBJECTID              obj             // object
)
/* Selects object. */
{ WORD			objCount;       // number of objects

  WORD			i;              // counter

  InitObj(hDlg, AObjGetType(obj));
  objCount = (WORD) SendDlgItemMessage(hDlg, IDC_OBJ, CB_GETCOUNT, 0, 0);
  for (i = 0; i < objCount; i++)
    if (obj == (OBJECTID) SendDlgItemMessage(hDlg, IDC_OBJ, CB_GETITEMDATA,
                                             i, 0))
    { SendDlgItemMessage(hDlg, IDC_OBJ, CB_SETCURSEL, i, 0);
      break;
    } // if
  return TRUE;
} // SelObj
Beispiel #8
0
BOOL QSQL_DEF::EditType		/* ---- Edit Type ----------------------- */
( HWND                  hDlg,           // window handle
  LPARAM                lParam		// message
)
/* Edits type. */
{ TYPEID                type;           // type
  OBJECTID		obj;		// object
  int			extNameLen;		// extended name length
  char			extName[EXTNAMESIZE];	// extended name

  WORD			i;		// counter		       

  if (HIWORD(lParam) != CBN_SELCHANGE)
    return FALSE;

  i = (WORD) SendDlgItemMessage(hDlg, IDC_TYPE, CB_GETCURSEL, 0, 0);
  type = (TYPEID) SendDlgItemMessage(hDlg, IDC_TYPE, CB_GETITEMDATA, i, 0);

  /* ---- updates variable ---- */
  InitObj(hDlg, type);
  extNameLen = GetDlgItemText(hDlg, IDE_NAME, extName, sizeof(extName));
  if (type)
  { i = (WORD) SendDlgItemMessage(hDlg, IDC_OBJ, CB_GETCURSEL, 0, 0);
    obj = (OBJECTID) SendDlgItemMessage(hDlg, IDC_OBJ, CB_GETITEMDATA,
                                        i, 0);
    lstrcpy(&extName[extNameLen], ": <");
    extNameLen += 3;
    extNameLen += GetDlgItemText(hDlg, IDC_TYPE, &extName[extNameLen],
                                 MXVARSIZE);
    lstrcpy(&extName[extNameLen], ">");
  } // if
  else
  { obj = 0;
    lstrcpy(&extName[extNameLen], ": <(None)>");
  } // else   

  SendDlgItemMessage(hDlg, IDL_VARS, LB_GETSELITEMS, 1, (DWORD) &i);
  SendDlgItemMessage(hDlg, IDL_VARS, LB_DELETESTRING, i, 0);
  SendDlgItemMessage(hDlg, IDL_VARS, LB_INSERTSTRING, i, (DWORD) extName);
  SendDlgItemMessage(hDlg, IDL_VARS, LB_SETITEMDATA, i, (DWORD) obj);
  SendDlgItemMessage(hDlg, IDL_VARS, LB_SETSEL, TRUE, i);
  return TRUE;
} // EditType
Beispiel #9
0
void            TDSubInit( void ) {
//===========================

// Initialize compilation of a subprogram.

    InitObj();
    LabelIdx = 1;       // NULL label has value 0
    WildLabel = NULL;
    CommonEntry = NULL;
    ReturnValue = NULL;
    EPValue = NULL;
    EpilogLabel = 0;
    InitFormatList();
    SubAuxInit();
    if( ProgSw & PS_DONT_GENERATE ) {
        ++NumSubProgs; // count # of subprograms on first pass
    } else {
        CGFlags &= ~CG_MEM_LOW_ISSUED;
    }
}
CSpellLiuXingBullet::CSpellLiuXingBullet(CAttackData* data, int x, int y, CBuffData* damage,int length, int rank, int type)
{
	Data_ = data;
	ResourceName = data->ResourceName1 + "_1.png";
	FrameCount = data->ResourceFrameCount1;
	DownLoadType = type;
	Init_x = x;
	Init_y = y;
	if (rank == 1)
		Target_x = x + length;
	else
		Target_x = x - length;

	Target_y = y - length;
	
	Ranks_ = rank;
	RangeR_ = 10;
	iSpeed_ = Data_->BulletValue[1] * CCGlobleConfig::COMMON_BULLESPEED_VALUE;
	BuffData = damage;

	InitObj();
}