for example
file: test.as
class a
{
int b;
call(){ b++; }
}
class b : a
{
int c;
call(){...; c++ ;}//here, i want first to call "a::call()", then execute "c++", in c++ i only to use a::call(); but in as, how can i do it ?or ,as donot support this ?
}
another question
how to use bool value as argument to class method.
forexample
//as
void returna( bool t )
{
}
//c++
int funid = m_objtype->GetFunctionIdByName("returna");
asIScriptContext * p_ctx = m_engine->CreateContext();
p_ctx->Prepare(funid);
p_ctx->SetArg?????//here ,what i want to use ? SetArgByte? or another?
thanks all.
can i call a method from base class?
I had to guess that AS is ActionScript. try:
**edit
Didn't notice this forum is called AngelScript xD. Anyway, it should work the same as C++ from what I can find.
source
super.call();
**edit
Didn't notice this forum is called AngelScript xD. Anyway, it should work the same as C++ from what I can find.
a::call();
source
Two things are infinite: the universe and human stupidity; and Im not sure about the universe. -- Albert Einstein
AngelCode.com - game development and more - Reference DB - game developer references
AngelScript - free scripting library - BMFont - free bitmap font generator - Tower - free puzzle game
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement